Skip to content

Commit 0694c24

Browse files
author
Akos Kitta
committed
Estimated row heights to provide better scroll UX.
Closes #1381 Signed-off-by: Akos Kitta <[email protected]>
1 parent ede7479 commit 0694c24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: arduino-ide-extension/src/browser/widgets/component-list/component-list.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class ComponentList<T extends ArduinoComponent> extends React.Component<
4444
constructor(props: ComponentList.Props<T>) {
4545
super(props);
4646
this.cache = new CellMeasurerCache({
47-
defaultHeight: 300,
47+
defaultHeight: 150,
4848
fixedWidth: true,
4949
});
5050
}
@@ -68,6 +68,7 @@ export class ComponentList<T extends ArduinoComponent> extends React.Component<
6868
rowHeight={this.cache.rowHeight}
6969
deferredMeasurementCache={this.cache}
7070
ref={this.setListRef}
71+
estimatedRowSize={150}
7172
/>
7273
);
7374
}}

0 commit comments

Comments
 (0)