Ahh, thanks Gustaf ...
2012/2/23 Gustaf Nilsson <[email protected]>:
> I've had this problem with the white space in the top of frame before and it
> was caused by the history iframe that needs to be set invisible. Have a look
> at the showcase example where i fixed it.
... for the hint. You've added this to src/public/Showcase.html, which
explains it all: :-)
<iframe id='__pygwt_historyFrame'
style='width:0;height:0;border:0; display: none;'>use display: none;
to hide this frame or you get a blank white space on top of your
page.</iframe>
We probably should add "display:none;" to the APP_HTML_TEMPLATE in
pyjs/src/pyjs/browser.py, any objections? (Don't some browsers remove
the iframe from the DOM with display:none? Unfortunately,
visibility:hidden doesn't help.)
Actually, with the pyjs_site the display:none doesn't help, because
there is another iframe that caused the blank line on top: <iframe
src="website.nocache.html" ...>, an iframe without id. I'm still
trying to figure out where it comes from...
Cheers, Peter