Skip to content

Commit e7e9765

Browse files
committed
safety net
1 parent 1121cf0 commit e7e9765

File tree

1 file changed

+5
-0
lines changed
  • services/static-webserver/client/source/class/osparc/ui/markdown

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ qx.Class.define("osparc.ui.markdown.MarkdownChat", {
147147
}
148148
});
149149
}
150+
151+
// safety net; sometimes we miss an image load or so
152+
setTimeout(() => this.__scheduleResize(), 500);
150153
}).catch(error => console.error(error));
151154
},
152155

@@ -197,6 +200,8 @@ qx.Class.define("osparc.ui.markdown.MarkdownChat", {
197200
this.setMaxWidth(null); // measurer already capped; we set exact width
198201
this.setMinWidth(1); // avoid 0 when empty
199202
this.setWidth(totalW);
203+
204+
this.fireEvent("resized");
200205
});
201206
},
202207
}

0 commit comments

Comments
 (0)