Skip to content

Commit 565681c

Browse files
committed
set layout first
1 parent f29dc89 commit 565681c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

services/static-webserver/client/source/class/osparc/dashboard/GridButtonBase.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
2828
construct: function() {
2929
this.base(arguments);
3030

31+
this._setLayout(new qx.ui.layout.Canvas());
32+
3133
this.set({
3234
width: this.self().ITEM_WIDTH,
3335
height: this.self().ITEM_HEIGHT,
3436
padding: 0,
3537
allowGrowX: false
3638
});
3739

38-
this._setLayout(new qx.ui.layout.Canvas());
39-
4040
this.getChildControl("main-layout");
4141
},
4242

@@ -107,7 +107,6 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
107107
},
108108

109109
members: {
110-
111110
// overridden
112111
_createChildControlImpl: function(id) {
113112
let layout;

services/static-webserver/client/source/class/osparc/dashboard/ListButtonBase.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,17 @@ qx.Class.define("osparc.dashboard.ListButtonBase", {
2727

2828
construct: function() {
2929
this.base(arguments);
30-
this.set({
31-
minHeight: osparc.dashboard.ListButtonBase.ITEM_HEIGHT,
32-
allowGrowX: true
33-
});
3430

3531
const layout = new qx.ui.layout.Grid();
3632
layout.setSpacing(10);
3733
layout.setColumnFlex(osparc.dashboard.ListButtonBase.POS.SPACER, 1);
3834
this._setLayout(layout);
3935

36+
this.set({
37+
minHeight: osparc.dashboard.ListButtonBase.ITEM_HEIGHT,
38+
allowGrowX: true
39+
});
40+
4041
this.getChildControl("spacer");
4142
},
4243

0 commit comments

Comments
 (0)