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

IE6 freezes when evaluating width #1

@mnakalay

Description

@mnakalay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions