mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-18 08:02:27 +00:00
Use padded bounds to draw uniform list items
This commit is contained in:
parent
1d37191320
commit
c76fd93015
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ impl<V: 'static> Element<V> for UniformList<V> {
|
||||||
let item_origin =
|
let item_origin =
|
||||||
padded_bounds.origin + point(px(0.), item_height * ix + scroll_offset);
|
padded_bounds.origin + point(px(0.), item_height * ix + scroll_offset);
|
||||||
let available_space = size(
|
let available_space = size(
|
||||||
AvailableSpace::Definite(bounds.size.width),
|
AvailableSpace::Definite(padded_bounds.size.width),
|
||||||
AvailableSpace::Definite(item_height),
|
AvailableSpace::Definite(item_height),
|
||||||
);
|
);
|
||||||
item.draw(item_origin, available_space, view_state, cx);
|
item.draw(item_origin, available_space, view_state, cx);
|
||||||
|
|
Loading…
Reference in a new issue