diff --git a/osu.Game/Screens/SelectV2/BeatmapCarouselFilterGrouping.cs b/osu.Game/Screens/SelectV2/BeatmapCarouselFilterGrouping.cs index 14d11d414210..1f76e44d3580 100644 --- a/osu.Game/Screens/SelectV2/BeatmapCarouselFilterGrouping.cs +++ b/osu.Game/Screens/SelectV2/BeatmapCarouselFilterGrouping.cs @@ -53,6 +53,7 @@ public async Task> Run(IEnumerable items newItems.Add(new CarouselItem(b.BeatmapSet!) { IsHeader = true, + DrawHeight = 80, IsGroupSelectionTarget = true }); } diff --git a/osu.Game/Screens/SelectV2/CarouselItem.cs b/osu.Game/Screens/SelectV2/CarouselItem.cs index 931fedafb856..f28a42aca43b 100644 --- a/osu.Game/Screens/SelectV2/CarouselItem.cs +++ b/osu.Game/Screens/SelectV2/CarouselItem.cs @@ -11,6 +11,8 @@ namespace osu.Game.Screens.SelectV2 /// public sealed class CarouselItem : IComparable { + public const float DEFAULT_HEIGHT = 40; + /// /// The model this item is representing. /// @@ -23,9 +25,9 @@ public sealed class CarouselItem : IComparable public double CarouselYPosition { get; set; } /// - /// The height this item will take when displayed. + /// The height this item will take when displayed. Defaults to . /// - public float DrawHeight => IsHeader ? 80 : 40; + public float DrawHeight { get; set; } = DEFAULT_HEIGHT; /// /// Whether this item is a group header.