antoniandre / splitpanes

A Vue 3 (and 2) reliable, simple and touch-ready panes splitter / resizer.
https://antoniandre.github.io/splitpanes
MIT License
1.91k stars 169 forks source link

Anyway to respect the provided size even if there is only one pane? #197

Open yaegerbomb opened 1 year ago

yaegerbomb commented 1 year ago

Using Vue2 legacy library:

I want the size of my pane to remain the size provided even if it is the only child. On load the size of the component provided is respected. But changing the route to another area where there is only one child pane will cause that pane to size to 100% of the width.

I've tried to dynamically set the max-size based on number of children but that runs into an interesting bug of the splitter resizing the wrong pane. Is this possible at all?