Skip to content
This repository has been archived by the owner on Jan 14, 2018. It is now read-only.

IE6 freezes when evaluating width #1

Open
mnakalay opened this issue Jul 6, 2013 · 0 comments
Open

IE6 freezes when evaluating width #1

mnakalay opened this issue Jul 6, 2013 · 0 comments

Comments

@mnakalay
Copy link

mnakalay commented Jul 6, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant