Skip to content

Commit de20f45

Browse files
committed
minors
1 parent 1377ffc commit de20f45

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

services/static-webserver/client/source/class/osparc/ui/basic/JsonTreeViewer.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ qx.Class.define("osparc.ui.basic.JsonTreeViewer", {
2525
construct: function(jsonObj) {
2626
this.base(arguments);
2727

28-
this._setLayout(new qx.ui.layout.VBox());
28+
this.set({
29+
minWidth: 200,
30+
minHeight: 200,
31+
marginLeft: -30,
32+
marginTop: -10,
33+
});
2934

3035
if (jsonObj) {
3136
this.setJson(jsonObj);
@@ -34,7 +39,9 @@ qx.Class.define("osparc.ui.basic.JsonTreeViewer", {
3439

3540
members: {
3641
setJson(jsonObj) {
37-
osparc.wrapper.JsonTreeViewer.getInstance().print(jsonObj, this.getContentElement());
42+
this.addListenerOnce("appear", () => {
43+
osparc.wrapper.JsonTreeViewer.getInstance().print(jsonObj, this.getContentElement().getDomElement());
44+
}, this);
3845
},
3946
}
4047
});

services/static-webserver/client/source/resource/jsontreeviewer/jsonTree.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
font-size: 14px;
2121

2222
margin-left: 0px;
23-
font-family: 'Roboto';
23+
font-family: 'Manrope'; /* osparc */
2424
}
2525

2626
/* Styles for a list of child nodes */
@@ -31,7 +31,7 @@
3131
/* line-height: 2; */
3232

3333
margin-left: 0px;
34-
line-height: 1.5;
34+
/* line-height: 1.5; osparc */
3535
}
3636
.jsontree_node_expanded > .jsontree_value-wrapper > .jsontree_value > .jsontree_child-nodes {
3737
display: block;
@@ -71,7 +71,7 @@
7171

7272
color: transparent;
7373
}
74-
.jsontree_value {
74+
.jsontree_value {
7575
vertical-align: top;
7676
display: inline;
7777

0 commit comments

Comments
 (0)