File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
services/static-webserver/client/source/class/osparc/widget Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ qx.Class.define("osparc.widget.PersistentIframe", {
9191
9292 // override
9393 _createContentElement : function ( ) {
94- let iframe = this . __iframe = new qx . ui . embed . Iframe ( this . getSource ( ) ) ;
94+ const iframe = this . __iframe = new qx . ui . embed . Iframe ( this . getSource ( ) ) ;
9595 const persistentIframe = this ;
9696 iframe . addListener ( "load" , ( ) => {
9797 const currentTheme = qx . theme . manager . Meta . getInstance ( ) . getTheme ( ) ;
@@ -115,6 +115,9 @@ qx.Class.define("osparc.widget.PersistentIframe", {
115115 alignX : "right" ,
116116 alignY : "middle"
117117 } ) ) ;
118+ this . bind ( "showToolbar" , buttonContainer , "visibility" , {
119+ converter : showToolbar => showToolbar ? "visible" : "excluded"
120+ } ) ;
118121
119122 const diskUsageIndicator = this . __diskUsageIndicator = new osparc . workbench . DiskUsageIndicator ( ) ;
120123 diskUsageIndicator . getChildControl ( "disk-indicator" ) . set ( {
@@ -231,8 +234,6 @@ qx.Class.define("osparc.widget.PersistentIframe", {
231234 top : ( divPos . top - iframeParentPos . top ) ,
232235 right : ( iframeParentPos . right - iframeParentPos . left - divPos . right )
233236 } ) ;
234-
235- this . __buttonContainer . setVisibility ( this . isShowToolbar ( ) ? "visible" : "excluded" ) ;
236237 } , 0 ) ;
237238 } ,
238239
You can’t perform that action at this time.
0 commit comments