Previous Message
Next Message

IE Clearing Bug

Sent by Thierry Koblentz on 20 September 2008 05:05


> discuss.org] On Behalf Of Gunlaug Sørtun
> Sent: Friday, September 19, 2008 6:11 PM
> To: Bill Brown
> Cc: James Alvies; [EMAIL-REMOVED]
> Subject: Re: [css-d] IE Clearing Bug
> 
> Bill Brown wrote:
> 
> >> http://techsoup-global.org/node/1132
> 
> > You need a hasLayout fix on your #container element. #container
> > {zoom:1} should do the trick.
> >
> > You can test this by visiting your page and entering this into the
> > URL:
> > javascript:(document.getElementById('container').style.cssText=null)();
> 
> The thing is that IE(6) ignores a '#container {zoom:1}' or any other
> 'hasLayout' trigger - even when styled inline, and won't react properly
> until "shaken". A simple attempt to resize fonts (the page uses fixed
> fonts, btw) will do the "shaking" trick, but that's of no use for
> anything but testing.

"Shaking" is sometimes necessary when IE does not draw/redraw some elements
properly (for example with a "show/hide" script).
In such case I use the following:

document.getElementsByTagName("body")[0].style.zoom="normal";
document.getElementsByTagName("body")[0].style.zoom="1";
 

-- 
Regards,
Thierry | http://www.TJKDesign.com




______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: