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.

Fix workspace bottom obscured when bottom dock is full height (#27689)

Bibiana André19fb1e1b0d8a
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs
index b418c3f13ea..fa60d644fa1 100644
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@ -5879,7 +5879,8 @@ fn resize_bottom_dock(
window: &mut Window,
cx: &mut App,
) {
- let size = new_size.min(workspace.bounds.bottom() - RESIZE_HANDLE_SIZE);
+ let size =
+ new_size.min(workspace.bounds.bottom() - RESIZE_HANDLE_SIZE - workspace.bounds.top());
workspace.bottom_dock.update(cx, |bottom_dock, cx| {
bottom_dock.resize_active_panel(Some(size), window, cx);
});