From 63524a2354a84be67ab1f48cdb7bec57c8954427 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Tue, 29 Oct 2024 21:16:45 -0400 Subject: [PATCH] Add missing full-size styles for panes (#19935) As we don't use scrolling flex layouts directly in panes that often, the methods that would normally be applied to containers that should fill the space weren't applied here. Should help un-stuck #19872's layout issue, but I'm merging this change separately in case it creates some other layout issue in panes. Release Notes: - N/A --- crates/workspace/src/pane.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs index 01a1f0271e2fbc21c555335ca9db8b778e244158..97672fd2455261d820866a55d015d47d76e43a38 100644 --- a/crates/workspace/src/pane.rs +++ b/crates/workspace/src/pane.rs @@ -2696,6 +2696,7 @@ impl Render for Pane { .flex_1() .relative() .group("") + .overflow_hidden() .on_drag_move::(cx.listener(Self::handle_drag_move)) .on_drag_move::(cx.listener(Self::handle_drag_move)) .when(is_local, |div| { @@ -2704,6 +2705,8 @@ impl Render for Pane { .map(|div| { if let Some(item) = self.active_item() { div.v_flex() + .size_full() + .overflow_hidden() .child(self.toolbar.clone()) .child(item.to_any()) } else {