bvaughn / react-resizable-panels

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

左侧面板的宽度不受浏览器尺寸变化影响 #394

Closed TestCabana closed 2 months ago

TestCabana commented 2 months ago

如何实现浏览器的尺寸变化,不影响左侧面板的宽度,左侧面板的宽度只受拖动把手拖动来调整 How to change the size of the browser without affecting the width of the left panel, which is only adjusted by dragging the handle

TestCabana commented 2 months ago

image The width of the red box on the left panel is not affected by the browser's size page

bvaughn commented 2 months ago

Panels sizes are percentage based as mentioned in the FAQs. If resizing the window resizes the panel group, then it will resize panels within the group. that is a limitation of this library.