Skip to content

Commit 2acef2b

Browse files
committed
minor
1 parent 45dd6b7 commit 2acef2b

File tree

1 file changed

+2
-4
lines changed
  • services/static-webserver/client/source/class/osparc/ui/markdown

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ qx.Class.define("osparc.ui.markdown.Markdown2", {
166166
const contentW = Math.ceil(rect ? rect.width : 0);
167167

168168
// include widget insets (decorator/padding/border)
169-
const insets = this.getInsets ? this.getInsets() : { top: 0, bottom: 0 };
169+
const insets = this.getInsets ? this.getInsets() : { top: 0, bottom: 0, left: 0, right: 0 };
170170
const totalH = Math.max(0, contentH + (insets.top || 0) + (insets.bottom || 0));
171171
const totalW = Math.max(0, contentW + (insets.left || 0) + (insets.right || 0));
172172

@@ -175,9 +175,7 @@ qx.Class.define("osparc.ui.markdown.Markdown2", {
175175
this.setMinWidth(totalW);
176176
this.setWidth(totalW);
177177

178-
console.log("height", totalH, "width", totalW);
179-
180-
this.fireEvent("resized");
178+
console.log("totalH", totalH, "totalW", totalW);
181179
});
182180
},
183181
}

0 commit comments

Comments
 (0)