Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8 doesn't work #711

Closed
shellka-roi opened this issue Jun 15, 2015 · 1 comment
Closed

IE8 doesn't work #711

shellka-roi opened this issue Jun 15, 2015 · 1 comment

Comments

@shellka-roi
Copy link

I have error: 'invalid argument' in Item.prototype.layoutPosition when applying top style.
It contains 'NaNpx'...
It can be simple fixed by adding

// clean up 'auto' or other non-integer values
  this.position.x = isNaN( this.position.x ) ? 0 : this.position.x;
  this.position.y = isNaN( this.position.y ) ? 0 : this.position.y;

inside 'Item.prototype.layoutPosition' method

@desandro
Copy link
Owner

I'm sorry to see you're having trouble with Masonry. Could you provide a reduced test case? See Submitting Issues in the contributing guidelines.

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

No branches or pull requests

2 participants