File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
services/static-webserver/client/source/class/osparc/workbench Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1140,7 +1140,6 @@ qx.Class.define("osparc.workbench.WorkbenchUI", {
11401140 // create nodes
11411141 const nodes = model . getNodes ( ) ;
11421142 this . __renderNodes ( nodes ) ;
1143- qx . ui . core . queue . Layout . flush ( ) ;
11441143 this . __renderAnnotations ( model . getStudy ( ) . getUi ( ) ) ;
11451144 }
11461145 } ,
@@ -1154,7 +1153,14 @@ qx.Class.define("osparc.workbench.WorkbenchUI", {
11541153 nodeUI . addListenerOnce ( "appear" , ( ) => {
11551154 nNodesToRender -- ;
11561155 if ( nNodesToRender === 0 ) {
1156+ // all nodes rendered
11571157 this . __renderEdges ( nodes ) ;
1158+
1159+ setTimeout ( ( ) => {
1160+ // move to position (0, 0)
1161+ this . _workbenchLayoutScroll . scrollToX ( 0 ) ;
1162+ this . _workbenchLayoutScroll . scrollToY ( 0 ) ;
1163+ } , 10 ) ;
11581164 }
11591165 } , this ) ;
11601166 this . _addNodeUIToWorkbench ( nodeUI , node . getPosition ( ) ) ;
You can’t perform that action at this time.
0 commit comments