1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:42:55 +08:00

Vertically centre the panels in osu!direct

This commit is contained in:
Dean Herbert 2017-11-28 22:24:56 +09:00
parent f38e3b35d0
commit 66fa108696

View File

@ -220,7 +220,11 @@ namespace osu.Game.Overlays
switch (displayStyle)
{
case PanelDisplayStyle.Grid:
return new DirectGridPanel(b);
return new DirectGridPanel(b)
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
};
default:
return new DirectListPanel(b);
}