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

[Masonry] estimate at least one column #961

Merged
merged 2 commits into from
Jan 13, 2018
Merged

Conversation

djeeg
Copy link
Contributor

@djeeg djeeg commented Jan 10, 2018

I have a situation with a responsive layout recalculation, where the width ends up being ever so slightly less than defaultWidth, eg 312 / 318

Which then gets floored to 0
https://github.com/bvaughn/react-virtualized/blob/master/source/Masonry/Masonry.js#L319-L331
Which cascades into an invalid css error, assigning Infinity to a div height.

Thoughts on always estimating a least one column?

Copy link
Owner

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the clear explanation. I think this is a good change.

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

Successfully merging this pull request may close these issues.

2 participants