mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 16:52:55 +08:00
Fix filtered items being considered for height calculation
This commit is contained in:
parent
0a144a1388
commit
524419d5e4
@ -19,7 +19,7 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
switch (State.Value)
|
||||
{
|
||||
case CarouselItemState.Selected:
|
||||
return DrawableCarouselBeatmapSet.HEIGHT + Children.Count * DrawableCarouselBeatmap.HEIGHT;
|
||||
return DrawableCarouselBeatmapSet.HEIGHT + Children.Count(c => c.Visible) * DrawableCarouselBeatmap.HEIGHT;
|
||||
|
||||
default:
|
||||
return DrawableCarouselBeatmapSet.HEIGHT;
|
||||
|
Loading…
Reference in New Issue
Block a user