Fix scrolling of project panel
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
co-authored by
Max Brunsfeld
parent
a3f45c0d3b
commit
14bc2c6857
@@ -137,7 +137,7 @@ where
|
||||
size.set_y(size.y().min(scroll_height).max(constraint.min.y()));
|
||||
}
|
||||
|
||||
scroll_max = item_height * self.item_count as f32 - size.y();
|
||||
scroll_max = (item_height * self.item_count as f32 - size.y()).max(0.);
|
||||
self.autoscroll(scroll_max, size.y(), item_height);
|
||||
|
||||
items.clear();
|
||||
|
||||
Reference in New Issue
Block a user