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

Panes do not scroll when params exceed window height. #98

Closed
felixfaire opened this issue Oct 22, 2020 · 3 comments
Closed

Panes do not scroll when params exceed window height. #98

felixfaire opened this issue Oct 22, 2020 · 3 comments

Comments

@felixfaire
Copy link

felixfaire commented Oct 22, 2020

Hi.

I've come across this issue where you cannot reach certain parameters if the ui exceeds the window height.

I tried to solve this in the parent container using overflow-y: auto; but still the only way to reach the bottom parameters was to collapse parent folders above. Even adding many separate TweakPane instances to a div container with overflow enabled doesnt seem to allow scrolling to reach them.

Is there a simple way to fix this using custom css for tweakpane or is it something that needs to happen in the library its self?

I'm not a css expert so apologies if this is trivial. Thanks in advance.

@cocopon
Copy link
Owner

cocopon commented Oct 22, 2020

Maybe your overflow-y setting doesn't work because that element has no hint for its height.

I created a small example for scrollable pane:
https://codesandbox.io/s/tweakpane-scrollable-f4izl?file=/src/styles.css

Does this solve your problem?

@felixfaire
Copy link
Author

You are absolutely right. I just found this 1min ago and was about to message. Apologies for the noise. :)

@cocopon
Copy link
Owner

cocopon commented Oct 22, 2020

No problem! I'm glad the problem was solved.

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