universal-ie6-css icon indicating copy to clipboard operation
universal-ie6-css copied to clipboard

IE6 freezes when evaluating width

Open mnakalay opened this issue 11 years ago • 0 comments

Hello,

When evaluating the width in: width : expression(document.body.clientWidth < 640? "640px" : document.body.clientWidth > 120? "120em" : "auto");

IE6 freezes. The issue is documented and fixed by Cameron Moll on the page you give as a reference.

To avoid freezing you would have to write: width : expression(document.body.clientWidth < 642? "640px" : document.body.clientWidth > 122? "120em" : "auto");

Adding 2 is arbitrary, anything that makes sense would work as long as the condition is different than the value targetted.

mnakalay avatar Jul 06 '13 14:07 mnakalay