-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Don't resize one pane when container size changes #38
Comments
Hi @davidcann
|
That simply locks it at 6% width. What I'm looking for is the left pane (sidebar) to stay a fixed width (in pixels, not percent), but the right pane width to change as the window is resized. I'd also like for the user to be able to drag to change the sidebar's width and have it remain fixed at that pixel width, like described above. It seems that everything in the library is based only on percentages, so pixels are not possible. Is that correct? Otherwise, the library looks fantastic, so I wish it could do this too! |
You got it right, pixels are nightmare for us. Not because we don't know how to transform pixels to prec and vice versa, but because it doesn't capture all cases in a general way(never forget SSR and user custom styling), not to mention legacy supports (when Observer is partially supported). See the full discussion in #33.
Therefore, the current status, until we'd choose or get a PR that handle all the small side cases, is that we prefer to keep the conversion between PX and % to the user land. Maybe it should be documented in an example that tells how to do this, but here is my recepie:
Wish that there will be an easier way to achieve this all things together. As mentioned, the current status is to let the user to deal with this issue by himself, since he chooses how complicated the code should be for capturing all this side cases. (Some don't care about SSR and non-modern support) We're open to discussion though for ideas how to handle this problem in a user friendly way. |
As far as I can tell, there's no way to create a sidebar that the user can resize, but that stays a fixed size (in pixels) when the window is resized. This is a common sidebar or panel configuration, so I think it should be possible in a library like this.
Is this already possible?
The text was updated successfully, but these errors were encountered: