File tree 1 file changed +6
-1
lines changed
arduino-ide-extension/src/browser/widgets/component-list
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class ComponentList<T extends ArduinoComponent> extends React.Component<
43
43
constructor ( props : ComponentList . Props < T > ) {
44
44
super ( props ) ;
45
45
this . cache = new CellMeasurerCache ( {
46
- defaultHeight : 300 ,
46
+ defaultHeight : 140 ,
47
47
fixedWidth : true ,
48
48
} ) ;
49
49
}
@@ -67,6 +67,11 @@ export class ComponentList<T extends ArduinoComponent> extends React.Component<
67
67
rowHeight = { this . cache . rowHeight }
68
68
deferredMeasurementCache = { this . cache }
69
69
ref = { this . setListRef }
70
+ estimatedRowSize = { 140 }
71
+ // If default value, then `react-virtualized` will optimize and list item will not receive a `:hover` event.
72
+ // Hence, install and version `<select>` won't be visible even if the mouse cursor is over the `<div>`.
73
+ // See https://github.com/bvaughn/react-virtualized/blob/005be24a608add0344284053dae7633be86053b2/source/Grid/Grid.js#L38-L42
74
+ scrollingResetTimeInterval = { 0 }
70
75
/>
71
76
) ;
72
77
} }
You can’t perform that action at this time.
0 commit comments