debugger: Fix zoomed panel size regression (#33746)
Co-authored-by: Cole <cole@zed.dev> Release Notes: - N/A Co-authored-by: Cole <cole@zed.dev>
This commit is contained in:
parent
3f0f316f4d
commit
faca128304
1 changed files with 7 additions and 5 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue