gpui-component/crates/ui/src/resizable
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
..
mod.rs resizable, dock: Improve Panel adjust size logic on layout changed. (#1588) 2025-11-14 16:12:59 +08:00
panel.rs resizable, dock: Improve Panel adjust size logic on layout changed. (#1588) 2025-11-14 16:12:59 +08:00
resize_handle.rs chore: Remove unnecessary RefCell (#1301) 2025-09-29 14:39:04 +08:00