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

Recalculate on parent resize? #9

Open
empz opened this issue Dec 29, 2017 · 5 comments
Open

Recalculate on parent resize? #9

empz opened this issue Dec 29, 2017 · 5 comments

Comments

@empz
Copy link

empz commented Dec 29, 2017

Currently the grid doesn't recalculate its size when its parent change their dimension? Is there an easy way to do that?

To clarify, I'm not talking about browser window resizing. I have the grid inside a component that allows to be resized.

@mukeshsoni
Copy link
Owner

Browser's don't yet support detecting resize events on parent elements. Can the parent element itself detect that it's size has been changed? In that case i can provide a method which will trigger the recalculation of the grid

@empz
Copy link
Author

empz commented Dec 29, 2017 via email

@mukeshsoni
Copy link
Owner

@emzero That looks like a good idea. I wonder if using css-grid makes it even more straight forward and semantic.

@empz
Copy link
Author

empz commented Dec 31, 2017

That sounds like a very good idea but not all browsers support them yet (IE 11). Just using % units will make a huge improvement.

@mukeshsoni
Copy link
Owner

@anilljoshi Please create a new issue and delete the comment from this thread. This thread is meant for another issue.

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

No branches or pull requests

2 participants