Skip to content

Commit fe51ceb

Browse files
committed
bring back hide toolbar logic
1 parent 3022792 commit fe51ceb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ qx.Class.define("osparc.widget.PersistentIframe", {
116116
alignX: "right",
117117
alignY: "middle"
118118
}));
119-
this.bind("showToolbar", buttonsContainer, "visibility", {
120-
converter: showToolbar => showToolbar ? "visible" : "excluded"
121-
});
122119

123120
const diskUsageIndicator = this.__diskUsageIndicator = new osparc.workbench.DiskUsageIndicator();
124121
diskUsageIndicator.getChildControl("disk-indicator").set({
@@ -162,6 +159,7 @@ qx.Class.define("osparc.widget.PersistentIframe", {
162159
top: this.self().HIDDEN_TOP
163160
});
164161
});
162+
165163
this.addListener("move", e => {
166164
// got to let the new layout render first or we don't see it
167165
this.__syncIframePos();
@@ -238,7 +236,8 @@ qx.Class.define("osparc.widget.PersistentIframe", {
238236
}, 0);
239237
},
240238

241-
__applyShowToolbar: function() {
239+
__applyShowToolbar: function(show) {
240+
this.setToolbarHeight(show ? 25 : 0);
242241
this.__syncIframePos();
243242
},
244243

0 commit comments

Comments
 (0)