Closed viveleroi closed 8 months ago
I'm not sure I understand how to repro this bug. Any chance I could get you to record a Replay of it for me?
I'll have to look into that software but am on a work PC and there's some red tape
Got it. I recorded a Replay of it here: https://app.replay.io/recording/93348660-1153-44cb-9a3e-77b13ca40737
Going to look into it now.
v1.0.9 added support for detecting changes to
collapsedSize
, however this appears to be resetting the collapsed state.CodeSandbox
This demo uses window width to divide a fixed-pixel value into a percentage, since react-resizable-panels takes percentages. I'm using a hook
useWindowSize
from theusehooks-ts
library. Outside of always giving the initial window size as0
(which I've reported, and counter-acted here) I've confirmed the min and collapsed sizes are being calculated/rounded as expected.Related to #266