Correct panel y positions when filtered panels are present

This commit is contained in:
Dean Herbert 2017-12-11 21:12:06 +09:00
parent 970e55fc4a
commit fb92b3551e

View File

@ -436,18 +436,16 @@ namespace osu.Game.Screens.Select
foreach (BeatmapPanel panel in group.BeatmapPanels)
{
if (panel.Filtered) continue;
if (panel == selectedPanel)
selectedY = currentY + panel.DrawHeight / 2 - DrawHeight / 2;
panel.MoveToX(-50, 500, Easing.OutExpo);
//on first display we want to begin hidden under our group's header.
if (panel.Alpha == 0)
if (panel.Filtered || panel.Alpha == 0)
panel.MoveToY(headerY);
movePanel(panel, true, animated, ref currentY);
movePanel(panel, !panel.Filtered, animated, ref currentY);
}
}
else