Skip to content

Commit

Permalink
panel: Fix panel to unexpected size chagnes when moved some panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Dec 20, 2024
1 parent 57c1da2 commit 8747d87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/ui/src/resizable/panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ impl ResizablePanel {
fn update_size(&mut self, bounds: Bounds<Pixels>, cx: &mut ViewContext<Self>) {
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();
Expand Down

0 comments on commit 8747d87

Please sign in to comment.