From faca128304dd175b9b9441572bb7b827e380c0cf Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Wed, 2 Jul 2025 01:17:55 +0200 Subject: [PATCH] debugger: Fix zoomed panel size regression (#33746) Co-authored-by: Cole Release Notes: - N/A Co-authored-by: Cole --- crates/debugger_ui/src/debugger_panel.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/crates/debugger_ui/src/debugger_panel.rs b/crates/debugger_ui/src/debugger_panel.rs index cb48083192d6e615bcc6d4c94be89b467fb031da..d03e8c5225f04fae6b12d220a78a6806ebeaf6aa 100644 --- a/crates/debugger_ui/src/debugger_panel.rs +++ b/crates/debugger_ui/src/debugger_panel.rs @@ -1313,11 +1313,13 @@ impl Render for DebugPanel { } v_flex() - .when_else( - self.position(window, cx) == DockPosition::Bottom, - |this| this.max_h(self.size), - |this| this.max_w(self.size), - ) + .when(!self.is_zoomed, |this| { + this.when_else( + self.position(window, cx) == DockPosition::Bottom, + |this| this.max_h(self.size), + |this| this.max_w(self.size), + ) + }) .size_full() .key_context("DebugPanel") .child(h_flex().children(self.top_controls_strip(window, cx)))