PDA

View Full Version : Getting annoying let overs of Borderlayout on resizing? (IE)



samsmits
23 Oct 2006, 7:39 PM
Hi there,

I noticed that at times I would get an annoying ~0.75cm background cropping up on pages that implemented Borderlayout within the IE environment.

I did a few checks on this, and discovered the reason to this behaviour:
When you resize the window to be smaller than the content scrollbars in IE inevitably appear, and so when the script is calculating the document window size, it obviously does not take into the scrollbars that are limiting it's viewport. Hence, when the scrollbar does disappear there is that little bit of background exposed.

How do you get around this? Well, I couldn't figure out what Jack implemented (I thought it was the body style overflow, yet this didn't do the trick for IE). but adding
scroll="no" to the body tag did the trick.

Hope this helps someone out there annoyed :)

jack.slocum
24 Oct 2006, 9:33 AM
I have the same thing on my latest examples because overflow:hidden on the body doesn't work with any kind of doctype in IE. Also, be certain to set border:0px none on the body for IE as well.