Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use padded bounds to draw uniform list items
Antonio Scandurrac76fd930150a
diff --git a/crates/gpui2/src/elements/uniform_list.rs b/crates/gpui2/src/elements/uniform_list.rsindex bc5b807b202..342cd05471a 100644--- a/crates/gpui2/src/elements/uniform_list.rs+++ b/crates/gpui2/src/elements/uniform_list.rs@@ -211,7 +211,7 @@ impl<V: 'static> Element<V> for UniformList<V> {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);