allotment icon indicating copy to clipboard operation
allotment copied to clipboard

Change onReset callback logic

Open OliverWall opened this issue 1 year ago • 2 comments

Hi. Could you change the logic of the onReset callback. I expect that it will reset the panel size to default, but the callback will be called after the reset occurs. This is useful if we are storing panel values in localStorage and I need to know what value should be reset. It would also be cool to pass sizes like onDragEnd

https://github.com/johnwalley/allotment/blob/main/src/allotment.tsx#L182

OliverWall avatar Oct 12 '23 13:10 OliverWall

I have the same use case. I also expected the panes to be resized and onReset() called with the new sizes.

bboure avatar Feb 01 '24 11:02 bboure

The same problem. Are there updates of this issue?

riazus avatar May 15 '24 08:05 riazus