bvaughn / react-resizable-panels

https://react-resizable-panels.vercel.app/
MIT License
3.87k stars 135 forks source link

Nested layouts default to zero on size #218

Closed shaoruu closed 10 months ago

shaoruu commented 10 months ago

As can be seen in the attached video, when rerendering a new nested layout, the sub-layout would have a zero of size at first. Upon clicking on the resize handle, the sub-layout would snap back to the expected size. Any ideas why this is happening?

Thanks!

https://github.com/bvaughn/react-resizable-panels/assets/35216312/7c5430b8-c113-430a-a510-27aa3810470a

bvaughn commented 10 months ago

Need a repro. Can't debug a video.

bvaughn commented 10 months ago

A code sandbox would work, but a Replay would be even better.

shaoruu commented 10 months ago

Let me quickly get a repo to replicate this issue. Thanks

shaoruu commented 10 months ago

I created a new repo and tried replicating this issue. Turns out it's because the video above was using v0.0.55. As soon as I upgraded to v0.0.59, the issue was gone.

Thanks for this amazing library!

bvaughn commented 10 months ago

Glad to hear! :)