|Re: compute size of org.eclipse.swt.browser.Browser dependent on its content [message #753644 is a reply to message #750051]
||Fri, 28 October 2011 03:50
| Werner Hihn
Registered: July 2009
Thanks for the hints, they already pointed me in the right direction!|
@Rüdiger: Yes, using a heightHint seems to be the only possible
solution. But as I don' t know the content I have to combine that with
the solution proposed by Cole.
via browser.evaluate(function), use that as heightHint for the
gridData, and call layout() on the parent composite.
This seems to work in general, but there is still one drawback:
the browser is flickering a little (you can see the original size with
the scrollbar for a moment, before the new gridData is set).
I still have to spend a little time on that.
Thanks and Regards,
var D = document;
Powered by FUDForum
. Page generated in 0.02182 seconds