gpui-component/crates
Nico Gründel 78efbfdd7b
resizable, dock: Improve Panel adjust size logic on layout changed. (#1588)
This is a follow up to #1560 I noticed a couple small issues with
resizable panels and their use in docks after experimenting a lot:
- Sometimes the resizable group would take about ~500ms to update after
a resize. This was caused by the `StackPanel` not getting notified and
therefore not redrawn when the `ResizableState` was notified, as well as
the notify in `adjust_to_container_size` not actually firing properly.
The latter was fixed by defering the notify, though I'm still not quite
sure why that is necessary.
- In a couple of places, the total size all the panel missmatches the
container size, causing small glitches the first time a panel is
resized. Update the code in those places to properly adjust all the
panel sizes so they match the container size.

---------

Co-authored-by: Jason Lee <huacnlee@gmail.com>
2025-11-14 16:12:59 +08:00
..
assets assets: Add gpui-component-assets crate. (#1601) 2025-11-14 15:03:26 +08:00
macros Bump v0.4.0-preview2 2025-11-12 15:16:49 +08:00
reqwest_client Bump v0.4.0-preview2 2025-11-12 15:16:49 +08:00
story assets: Add gpui-component-assets crate. (#1601) 2025-11-14 15:03:26 +08:00
ui resizable, dock: Improve Panel adjust size logic on layout changed. (#1588) 2025-11-14 16:12:59 +08:00