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
This commit is contained in:
Marshall Bowers 2023-12-12 11:01:49 -05:00 committed by GitHub
parent c0846d6f74
commit a334a21f3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)))