Skip to content

Commit a13f62e

Browse files
committed
Loading props
1 parent 482898d commit a13f62e

File tree

1 file changed

+22
-4
lines changed
  • services/static-webserver/client/source/class/osparc/ui/message

1 file changed

+22
-4
lines changed

services/static-webserver/client/source/class/osparc/ui/message/Loading.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,21 @@ qx.Class.define("osparc.ui.message.Loading", {
6464
check: "Array",
6565
nullable: true,
6666
apply: "__applyMessages"
67-
}
67+
},
68+
69+
toolbarHeight: {
70+
check: "Integer",
71+
init: 25
72+
},
73+
74+
/**
75+
* Show Restart-Maximize Toolbar
76+
*/
77+
showToolbar: {
78+
check: "Boolean",
79+
init: true,
80+
apply: "__applyShowToolbar"
81+
},
6882
},
6983

7084
// from osparc.widget.PersistentIframe
@@ -97,15 +111,15 @@ qx.Class.define("osparc.ui.message.Loading", {
97111
__extraWidgets: null,
98112
__maxButton: null,
99113

100-
__buildLayout: function(showMaximizeButton) {
114+
__buildLayout: function() {
115+
this.__createMaximizeButton();
101116
this.__createMainLayout();
102-
this.__createMaximizeButton(showMaximizeButton);
103117
},
104118

105119
__createMainLayout: function() {
106120
const layout = new qx.ui.layout.Grid(20, 20);
107121
layout.setColumnFlex(0, 1);
108-
const mainLayout = this.__mainLayout = new qx.ui.container.Composite(new qx.ui.layout.VBox(20).set({
122+
const mainLayout = this.__mainLayout = new qx.ui.container.Composite(new qx.ui.layout.HBox(10).set({
109123
alignX: "center",
110124
alignY: "middle"
111125
})).set({
@@ -179,6 +193,10 @@ qx.Class.define("osparc.ui.message.Loading", {
179193
});
180194
},
181195

196+
__applyShowToolbar: function(show) {
197+
this.setToolbarHeight(show ? 25 : 0);
198+
},
199+
182200
__createMaximizeButton: function(showMaximizeButton) {
183201
const maximize = false;
184202
const maxButton = this.__maxButton = osparc.widget.PersistentIframe.createToolbarButton(maximize).set({

0 commit comments

Comments
 (0)