bvaughn / react-resizable-panels

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

Working with table elements #411

Closed BrendonChirume closed 1 month ago

BrendonChirume commented 1 month ago

Suppose you change the display property of the ResizablePrimitive.PanelGroup to anything other than flex, the resizing stops working altogether.

bvaughn commented 1 month ago

That's not supported. This library uses flexbox layout to work.

bvaughn commented 1 month ago

I should add that

elements require a specific type of nested DOM structure that (I don't think) would really make sense to use with a library like this. If you want to use this library to resize a table though, perhaps you could render a horizontal panel group and then listen to its onResize event and mirror the sizes in your table columns?