Replies: 2 comments 20 replies
-
Hi Stefan. This is a perfect use case for Allotment (it's based on VS Code after all) so it definitely should work. However, as you've discovered, it doesn't. Evenly distributing the space between the panes feels like a good default. It's how the VS Code editor panes behave. And as you point out, the code does look like it should do this. I'll aim to fix this next opportunity I have, probably tomorrow. I'll let you know when I publish an updated version. |
Beta Was this translation helpful? Give feedback.
-
Do you have an example I could look at? I'm struggling to reproduce it in the hastily put together test I've created. I'm offline for the rest of the day but will take another look tomorrow. |
Beta Was this translation helpful? Give feedback.
-
Hello John,
I am creating an editor and want to add a new Allotment.Pane dynamically from an array. However, doing so will render the new pane with the minimum size only (30px). When I double click on the sash, the pane is resized correctly. Is there any way to force this? I looked into the code and it seems adding a new pane should distribute the panes correctly. Any idea?
Thanks,
Stefan
Beta Was this translation helpful? Give feedback.
All reactions