Skip to content

Commit a97877a

Browse files
authored
Render more rows while virtualizing plots (#1795)
* Render more rows while virtualizing plots * Change overscanRowCount to 15 * Remove a few plots from story
1 parent c4234bd commit a97877a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

webview/src/shared/components/virtualizedGrid/VirtualizedGrid.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const VirtualizedGrid: React.FC<VirtualizedGridProps> = ({
5959
columnCount={nbItemsPerRow}
6060
columnWidth={cache.current.columnWidth}
6161
cellRenderer={cellRenderer}
62+
overscanRowCount={15}
6263
/>
6364
)}
6465
</AutoSizer>

webview/src/stories/Plots.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ VirtualizedPlots.args = {
157157
},
158158
comparison: undefined,
159159
sectionCollapsed: DEFAULT_SECTION_COLLAPSED,
160-
template: manyTemplatePlots(25)
160+
template: manyTemplatePlots(125)
161161
}
162162
}
163163
VirtualizedPlots.parameters = chromaticParameters

0 commit comments

Comments
 (0)