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

How to properly resize it? #27

Open
wargebitebane opened this issue Jan 31, 2022 · 2 comments
Open

How to properly resize it? #27

wargebitebane opened this issue Jan 31, 2022 · 2 comments

Comments

@wargebitebane
Copy link

Thanks a lot for awesome library.
All elements are positioned by px but what if main container is resizing?

@suterma
Copy link

suterma commented Mar 24, 2023

As it currently stands, it does not dynamically resize, but adjusts itself to the size of the div at creation time.

@esonderegger I would suggest to improve this by not calculating absolute pixels but percent values for all the elements. If you are interested, I could try something out and offer as PR.

@esonderegger
Copy link
Owner

Thank you for the kind words! This has been fixed in version 3 of this library - all the relevant sizing and positioning is now done via percentages, so it should adjust automatically when its parent container is resized.

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

3 participants