From 6a5fff889e071c5daf3f756110833e09f29ed906 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Tue, 15 Oct 2024 14:52:40 +0800 Subject: [PATCH] dock: Disallow move panel when it is zoomed in. (#346) Closes #342 --- crates/ui/src/dock/tab_panel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui/src/dock/tab_panel.rs b/crates/ui/src/dock/tab_panel.rs index 60ae749b..0906d200 100644 --- a/crates/ui/src/dock/tab_panel.rs +++ b/crates/ui/src/dock/tab_panel.rs @@ -261,7 +261,7 @@ impl TabPanel { /// Return true if the panel can be split or move fn can_split(&self) -> bool { - self.stack_panel.is_some() + self.stack_panel.is_some() && !self.is_zoomed } pub(super) fn set_collapsed(&mut self, collapsed: bool, cx: &mut ViewContext) {