Thanks to visit codestin.com
Credit goes to github.com

Skip to content

IE 8 getComputedStyle undefined in mungeNonPixel function #10

@simbas

Description

@simbas

Hello,

I'm trying to use Masonry on IE8 but I have the following error:

'getComputedStyle' is undefined in the mungeNonPixel function.

This error led me to this repository.

The following code is my hotfix to this issue:

if ( window.getComputedStyle || value.indexOf('%') === -1 ) {
    return value;
}

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