From 28463d3a1865fb90c6b0a2c774fc8dfeb4b8c54a Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 20 Dec 2024 19:15:31 +0800 Subject: [PATCH] panel: Fix panel to unexpected size chagnes when moved some panel. (#506) ### Before https://github.com/user-attachments/assets/9174033b-d901-412f-9176-cdef6438822f --- crates/ui/src/resizable/panel.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui/src/resizable/panel.rs b/crates/ui/src/resizable/panel.rs index f47a7106..99a7e285 100644 --- a/crates/ui/src/resizable/panel.rs +++ b/crates/ui/src/resizable/panel.rs @@ -338,6 +338,7 @@ impl ResizablePanel { fn update_size(&mut self, bounds: Bounds, cx: &mut ViewContext) { let new_size = bounds.size.along(self.axis); self.bounds = bounds; + self.size_ratio = None; self.size = Some(new_size); let entity_id = cx.view().entity_id();