Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

debugger: Fix zoomed panel size regression (#33746)

Piotr Osiewiczfaca128304dd
diff --git a/crates/debugger_ui/src/debugger_panel.rs b/crates/debugger_ui/src/debugger_panel.rs
index cb48083192d..d03e8c5225f 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)))