longbridgeapp / gpui-component

UI components write in GPUI.
Apache License 2.0
150 stars 20 forks source link

resizable: Keep the ratio when adjust widths (rather than falling back to 33.33% when resizing back) #329

Closed xda2023 closed 1 week ago

xda2023 commented 1 week ago

The essence of the problem is that flex_basis initial_size and flex_basis size are in conflict: the size overwrites the initial_size percentage and loses the original percentage in extremely narrow parent groups, so we have to add the field to the state persisting the desired percentage.

Fix #262

2024-10-10 19 35 17