tomkp / react-split-pane

React split-pane component
https://tomkp.github.io/react-split-pane
MIT License
3.21k stars 408 forks source link

Percent-based values? #352

Open Glinkis opened 5 years ago

Glinkis commented 5 years ago

I would love if there was a possibility to use percentages as minSize/maxSize. This would allow us to ensure that the user cannot get "stuck" by dragging the panel divider outside of the view.

wmtpratikk commented 5 years ago

Any update on this?

logesh2496 commented 4 years ago

isn't it already available? Here: http://react-split-pane-v2.surge.sh/?MinPercentageHorizontalExample and here: http://react-split-pane-v2.surge.sh/?MaxPercentageVerticalExample

danvln commented 3 years ago

I think that it would interesting to have the divs width and height changing in percentages and not absolute values. It will allow other components to move along nicely.