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

Resizing the tree #8

Closed
denkomanceski opened this issue Feb 23, 2017 · 1 comment
Closed

Resizing the tree #8

denkomanceski opened this issue Feb 23, 2017 · 1 comment

Comments

@denkomanceski
Copy link

Hi, I tried to flex the tree's container to fit the screen, but the tree gets hidden after some scrolling.. What would be the best way to change the height of the tree dynamically based on the screen size? Manually increase the height or ?
Ty
Regards

@cheton
Copy link
Owner

cheton commented Feb 23, 2017

Take a look at the example:
https://infinite-tree.js.org/examples.html#/classic

You can update the max-height accordingly.

image

If you want to fit the view port height, use max-height: calc(100vh - 100px), where 100px is the padding when necessary.

@cheton cheton closed this as completed Feb 24, 2017
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