Embed Webcontainer Into Webdialog

Hi,

I try to embed a Webcontainer at runtime to WebDialog (Modal)

I call the embedWithin method in the shown event of the webDialog.

But the Webcontainer isn’t placed into the Dialog, its placed next to the dialog in DOM. Result is, that I can’t align it into to container properly. And on resizing of the Window, the Container is floating over other controls of the dialog.

How can I add a webcontainer to a webDialog at runtime properly?

Thanks!

Check this

https://www.dropbox.com/s/nov4xvj20eth2wp/embedcontainer.xojo_binary_project.tar.gz?dl=0