b-zurg/react-collapse-pane

minSizes prop ignored on window resize

godsamit opened this issue · 1 comments

if the user shrinks a window, the pane with minSizes set will shrink smaller than the minimal size.

I know this might be a browser issue that's hard to fix so feel free to close this. But this does cause some problems in my usage and any help to circumvent that would be greatly appreciated.

I have some ideas for a v3 release that will be using css grid instead of flex for laying out the items.

This will allow offloading the entire min/max management completely to css grid's minmax function which I think will help with performance as well as simplicity.

It will also give the user the ability to specify a min size as well as a max size relatively easily, which is not currently something that's possible.

Sorry it took me so long to come and reply to this. It's a bit difficult to spend time on OSS for me at the moment but hopefully will manage to do this redesign and that will solve your issue..