diff --git a/crates/ui/src/dock/tab_panel.rs b/crates/ui/src/dock/tab_panel.rs index cd4f4686..39961c6c 100644 --- a/crates/ui/src/dock/tab_panel.rs +++ b/crates/ui/src/dock/tab_panel.rs @@ -238,6 +238,7 @@ impl TabPanel { pub fn remove_panel(&mut self, panel: Arc, cx: &mut ViewContext) { self.detach_panel(panel, cx); self.remove_self_if_empty(cx); + cx.emit(PanelEvent::ZoomOut); cx.emit(PanelEvent::LayoutChanged); }