Closed saturnonearth closed 6 months ago
This is unlikely to make it into the project anytime soon. While it seems simple at the surface level, it actually adds an (IMO) unmaintainable level of complexity into the project that I'm not willing to accept at the moment.
It has already been attempted and eventually removed in the well established React Resizable Panels, due to the amount of unexpected edge cases that come into play that make it a nightmare.
One thing we could possibly do is expose a callback prop like shouldResize
or onResize
where you'd get a reference to the pane being resized and could potentially prevent it from being able to shrink of the element is below a certain width/height or above a certain width/height.
One thing we could possibly do is expose a callback prop like
shouldResize
oronResize
where you'd get a reference to the pane being resized and could potentially prevent it from being able to shrink of the element is below a certain width/height or above a certain width/height.
If easy to implement, that would cool! I definitely don't want to add a lot of work onto you.
Describe the feature in detail (code, mocks, or screenshots encouraged)
I want to be able to set a a minimum width in pixels so a side panel cannot be made smaller than the minimum. I tried using CSS classes for this which kind of works but has slightly funky behavior.
What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
No response