Hm, I slogged through the code, but didn't really notice anything out
of place... What I didn't see was any references to padding, try
setting it to 0px as well. Then, inside the test page, do:
Window.setMargin("0px 0px 0px 0px"); and Window.enableScrolling
(false);, in case it's your div making scrollbars inside the frame.
I've noticed that you can get scrollbars using iframes when the
content inside is exactly the size of the content outside... Some
other hacks you can use {for various browsers} is setting margin to
-1px, setting overflow: visible !important; or hidden !important, {<-
WILL work}. Setting overflow-x and overflow-y to anything but auto
will always remove scrollbars...
As for the white spaces, I could tell you exactly what it is, but my
guess is it's the page body showing around your div. Is it possible
to upload somewhere so I can inspect with Firebug? It makes css
hacking soooooo easy! Just press F12, click the "inspect" button, and
click on the element whose style you want to change. You can even get
a bookmarklet that {kinda} works for IE7+, that's at
http://getfirebug.com/lite.html
...But, I'd recommend downloading the js as per their instructions,
the bookmarlet tends to freeze my app, but that could also be because
IE is rendering my page, my graphics loop is constantly updating
values, the IE toolbar is reading those values, and then firebug tries
to weasle in there too...
Speaking of which, what browsers do you notice this in? IE6 adds a
complimentary 10px horizontal padding to divs; you know, cos you
always want it, right? Look up "clearing stylesheets for IE.
Also, for css, quirksmode.org will save you many headaches.
PS, forgive the strange hour of my reply.... I sleep during the day...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---