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
This commit is contained in:
Nate Butler 2024-10-29 21:16:45 -04:00 committed by GitHub
parent 90edb7189f
commit 63524a2354
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2696,6 +2696,7 @@ impl Render for Pane {
.flex_1()
.relative()
.group("")
.overflow_hidden()
.on_drag_move::<DraggedTab>(cx.listener(Self::handle_drag_move))
.on_drag_move::<DraggedSelection>(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 {