From a334a21f3e6ce509e481d908c6d9628b33fcb21f Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 12 Dec 2023 11:01:49 -0500 Subject: [PATCH] Prevent panes from overflowing the window (#3609) This PR fixes an issues where it was possible for panes to overflow the window (for instance, by having a large number of tabs in the tab bar). Release Notes: - N/A --- crates/workspace2/src/pane.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rs index 76fc93196088c5dd0e8c121ae68a89011a50a0ed..28c371f7387ee356081441e2adfce088f2b0b035 100644 --- a/crates/workspace2/src/pane.rs +++ b/crates/workspace2/src/pane.rs @@ -2106,6 +2106,7 @@ impl Render for Pane { .key_context("Pane") .track_focus(&self.focus_handle) .size_full() + .flex_none() .overflow_hidden() .on_action(cx.listener(|pane, _: &SplitLeft, cx| pane.split(SplitDirection::Left, cx))) .on_action(cx.listener(|pane, _: &SplitUp, cx| pane.split(SplitDirection::Up, cx)))