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

Responsiveness #25

Closed
sagarPakhrin opened this issue Mar 20, 2023 · 1 comment
Closed

Responsiveness #25

sagarPakhrin opened this issue Mar 20, 2023 · 1 comment

Comments

@sagarPakhrin
Copy link

I'm having trouble making the grid responsive.

Can we make it so that the grid takes all the '100%' of the parent width instead of specifying exact width and height?

@rmdort
Copy link
Member

rmdort commented Mar 20, 2023

The grid is using canvas, which requires width and height. You should use resize observer hooks to get the dimensions of parent element

https://github.com/ZeeCoder/use-resize-observer

@rmdort rmdort closed this as completed Mar 27, 2023
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