File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -323,14 +323,17 @@ class Blocks extends React.Component {
323323 this . workspace . getToolbox ( ) . forceRerender ( ) ;
324324 this . _renderedToolboxXML = this . props . toolboxXML ;
325325
326- const newCategoryScrollPosition =
326+ const newCategoryScrollPosition = this . workspace
327+ . getFlyout ( )
328+ . getCategoryScrollPosition ( selectedCategoryName ) ;
329+ if ( newCategoryScrollPosition ) {
327330 this . workspace
328331 . getFlyout ( )
329- . getCategoryScrollPosition ( selectedCategoryName ) . y * scale ;
330- this . workspace
331- . getFlyout ( )
332- . getWorkspace ( )
333- . scrollbar . setY ( newCategoryScrollPosition + offsetWithinCategory ) ;
332+ . getWorkspace ( )
333+ . scrollbar . setY (
334+ newCategoryScrollPosition . y * scale + offsetWithinCategory
335+ ) ;
336+ }
334337
335338 const queue = this . toolboxUpdateQueue ;
336339 this . toolboxUpdateQueue = [ ] ;
You can’t perform that action at this time.
0 commit comments