-
Notifications
You must be signed in to change notification settings - Fork 57
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
Affect which panels resize when window resizes #249
Comments
Hi @leobudima. Thanks for the feedback. I can't test the behaviour you see at the moment (not at a computer) but it sounds very believable (i've not explicitly tried to handle it so it doesn't surprise me). The underlying VS Code implementation has a concept of low and high priority panes which affects how space gets apportioned when the component is resized. I think this should do what we want, so it would become a question of how to expose this functionality via the React components. Off the top of my head it could either be:
We can track progress in this ticket. I'll start by updating the Advanced VS Code story to use left and right sidebars (much like the real VS Code). |
Thanks for looking into this, @johnwalley ! I think both approaches are good (new priority flag, or
I guess if concept of priority was needed in VSC, it's likely that other cases exist which might benefit from this approach, that you might like to cover in the future, so potentially another point for this approach. Cheers! |
Hi @leobudima. I've created #267 which implements a new |
You know what, let's get this out there and see what people think. I've released this as v1.13.0. |
Hi @johnwalley, thanks so much for you effort on this - I updated the release version and tested the new prop - added "LOW" to sidebars, "HIGH" to the center content pane, and set the proportionalLayout prop to false - works flawlessly and behaves exactly as desireable in my case! Thanks again so much - I see that the implementation wasn't that small and simple. |
First of all, thanks so much for an amazing library - was very happy to find it and the feature set and implementation is excellent.
One last challenge I have is that I have a left and a right sidebar, with main content being in the center. If I increase the window size by dragging it to the right, I would want the center panel to stretch, but sidebars to remain at their preferredSize.
By default, all panels will stretch proportionally, and when I set the proportionalLayout to false, only the right sidebar resizes :)
Any hint as to how I can affect this behaviour?
Thanks!
The text was updated successfully, but these errors were encountered: