Skip to content

Commit 74e8972

Browse files
committed
cleanup
1 parent fa0eddc commit 74e8972

File tree

1 file changed

+3
-15
lines changed
  • services/static-webserver/client/source/class/osparc/ui/markdown

1 file changed

+3
-15
lines changed

services/static-webserver/client/source/class/osparc/ui/markdown/Markdown2.js

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ qx.Class.define("osparc.ui.markdown.Markdown2", {
5858

5959
this.addListenerOnce("appear", () => {
6060
this.getContentElement().addClass("osparc-markdown");
61-
this.__scheduleResize(); // first paint sizing
61+
// this.__scheduleResize(); // first paint sizing
6262
});
6363
},
6464

@@ -83,6 +83,7 @@ qx.Class.define("osparc.ui.markdown.Markdown2", {
8383

8484
members: {
8585
__loadMarked: null,
86+
8687
/**
8788
* Apply function for the markdown property. Compiles the markdown text to HTML and applies it to the value property of the label.
8889
* @param {String} value Plain text accepting markdown syntax.
@@ -116,20 +117,6 @@ qx.Class.define("osparc.ui.markdown.Markdown2", {
116117

117118
this.setHtml(safeHtml);
118119

119-
/*
120-
// Wait for DOM update
121-
qx.event.Timer.once(() => {
122-
this.__resizeMe();
123-
}, this, 50);
124-
*/
125-
126-
/*
127-
// this.__resizeMe();
128-
this.getContentElement().addListenerOnce("appear", () => {
129-
this.__resizeMe();
130-
});
131-
*/
132-
133120
// resize once DOM is updated/painted
134121
this.__scheduleResize();
135122

@@ -177,6 +164,7 @@ qx.Class.define("osparc.ui.markdown.Markdown2", {
177164

178165
this.setMinHeight(totalH);
179166
this.setHeight(totalH);
167+
console.log("Markdown2 resized to height", totalH);
180168
});
181169
},
182170
}

0 commit comments

Comments
 (0)