bvaughn / react-resizable-panels

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

PanelGroup different height with collapsed children #306

Closed fitterfizzle closed 4 months ago

fitterfizzle commented 4 months ago

I have a composition of 2 <Panels/> inside a <PanelGroup/>.

They are not rendered conditionally, but <Panel/> 1 on the left has the collapsible property defined. When <Panel/> 1 is collapsed to 0, the total height of <PanelGroup/> appears to be increasing by 15px (not empirical value, just based on current setup), but when opening the <Panel/> 1 then the size appears to go down to the expected height value, which is minus the 15px mentioned above.

Any ideas, help what the issue might be?

bvaughn commented 4 months ago

This is most likely caused by some CSS/styling issue in your project. I can't really troubleshoot it without being able to see your code/styles.

bvaughn commented 4 months ago

Closing because there isn't enough information here for me to do anything with this issue.