panel: Toggle to zoom out when close a panel. (#322)
This commit is contained in:
parent
4fd233ae6b
commit
45d4b445ec
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue