allotment icon indicating copy to clipboard operation
allotment copied to clipboard

ref.current.resize is a noop when snap={true}

Open qwtel opened this issue 3 years ago • 1 comments

Resizing the component is not possible when snap to zero is enabled

Allotment v1.10.0 React v18.0.0-rc.0

qwtel avatar Feb 26 '22 14:02 qwtel

When using ref.current.resize([0, 400]) with snap={true}, it resizes until reached minSize value.

There should be a way to snap one of the Panes?

Any temporary workaround is appreciated.

allotment v1.19.0 react v18.2.0

satarovbekzhan avatar May 11 '23 07:05 satarovbekzhan