Skip to content

Commit 482898d

Browse files
committed
minor
1 parent 90fe7a7 commit 482898d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

services/static-webserver/client/source/class/osparc/widget/PersistentIframe.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)