As for me, its definitely not an ActiveX control-related size calculation problem.
What reinforces my belief in this is that an attempt to run the html source from the OP in firefox, for example, make you end up with the same 'issue'.
If it is question to keep the html source and force the GUI control to fit its size, I can't think of any solution.
I would assume that the aim here is to create some kind of frame encompassing the page, correct me if I'm wrong Mipha
. If so, it might be possible to do this using a table element but div elements are the usual candidates - they are more flexible. The easiest way I can think of is to use four fixed div. An element positioned in a fixed position is positioned relative to the browser window; that is, it always remains in the same place, even if the page scrolls. With this technique, you can use both
left: 0; right: 0;
top: 0; bottom: 0;
in place of
Code: Select all
<div class="v" id="left"></div><div class="v" id="right"></div><div class="h" id="top"></div><div class="h" id="bottom"></div>
Gui,Margin, 0, 0
Gui, Add, ActiveX, W500 H500 vdoc, HTMLFile
GUI, Show, AutoSize
Css is definitely not my cup of tea - it might exist a nicer way to do this. Otherwise, both the
pseudo-property or the
property could be helpful.
Hope this helps.