diff --git a/crates/gpui2/src/elements/uniform_list.rs b/crates/gpui2/src/elements/uniform_list.rs index bc5b807b20..342cd05471 100644 --- a/crates/gpui2/src/elements/uniform_list.rs +++ b/crates/gpui2/src/elements/uniform_list.rs @@ -211,7 +211,7 @@ impl Element for UniformList { let item_origin = padded_bounds.origin + point(px(0.), item_height * ix + scroll_offset); let available_space = size( - AvailableSpace::Definite(bounds.size.width), + AvailableSpace::Definite(padded_bounds.size.width), AvailableSpace::Definite(item_height), ); item.draw(item_origin, available_space, view_state, cx);