Skip to content

Commit cf813ec

Browse files
committed
spacers
1 parent 461e502 commit cf813ec

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

services/static-webserver/client/source/class/osparc/auth/LoginPageSplit.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,19 @@ qx.Class.define("osparc.auth.LoginPageSplit", {
7171
loginPage.addListener("done", e => this.fireDataEvent("done", e.getData()));
7272
const container = new qx.ui.container.Scroll();
7373
container.add(loginPage);
74-
const hideableItems = loginPage.getChildControl("login-view").getHideableItems();
74+
const spacers = [
75+
loginPage.getChildControl("top-spacer"),
76+
loginPage.getChildControl("bottom-spacer"),
77+
];
78+
const hideableItems = loginPage.getChildControl("login-view").getHideableItems());
7579
if (this.isCompactVersion()) {
7680
// no split-image
7781
// just the login widget
7882
this.__resetBackgroundImage();
7983
this._add(container, {
8084
flex: 1
8185
});
86+
spacers.forEach(spacer => spacer.setMinHeight(0));
8287
hideableItems.forEach(hideableItem => hideableItem.exclude());
8388
} else {
8489
// split-image on the left
@@ -90,6 +95,7 @@ qx.Class.define("osparc.auth.LoginPageSplit", {
9095
this._add(container, {
9196
width: "50%"
9297
});
98+
spacers.forEach(spacer => spacer.setMinHeight(50));
9399
hideableItems.forEach(hideableItem => hideableItem.show());
94100
}
95101
},

services/static-webserver/client/source/class/osparc/auth/LoginWithDecorators.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ qx.Class.define("osparc.auth.LoginWithDecorators", {
6363
let control;
6464
switch (id) {
6565
case "top-spacer":
66-
control = new qx.ui.core.Spacer();
66+
control = new qx.ui.core.Spacer().set({
67+
minHeight: 50,
68+
});
6769
this._add(control, {
6870
flex: 1
6971
});
@@ -109,7 +111,9 @@ qx.Class.define("osparc.auth.LoginWithDecorators", {
109111
});
110112
break;
111113
case "bottom-spacer":
112-
control = new qx.ui.core.Spacer();
114+
control = new qx.ui.core.Spacer().set({
115+
minHeight: 50,
116+
});
113117
this._add(control, {
114118
flex: 1
115119
});
@@ -342,6 +346,6 @@ qx.Class.define("osparc.auth.LoginWithDecorators", {
342346
});
343347

344348
return versionLinkLayout;
345-
}
349+
},
346350
}
347351
});

0 commit comments

Comments
 (0)