Skip to content

Commit

Permalink
panel: Toggle to zoom out when close a panel. (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee authored Oct 8, 2024
1 parent 4fd233a commit 45d4b44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/ui/src/dock/tab_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ impl TabPanel {
pub fn remove_panel(&mut self, panel: Arc<dyn PanelView>, cx: &mut ViewContext<Self>) {
self.detach_panel(panel, cx);
self.remove_self_if_empty(cx);
cx.emit(PanelEvent::ZoomOut);
cx.emit(PanelEvent::LayoutChanged);
}

Expand Down

0 comments on commit 45d4b44

Please sign in to comment.