Do not center lobby options vertically in the scroll panel

This commit is contained in:
Ivaylo Draganov
2021-06-22 16:17:15 +03:00
committed by Paul Chote
parent f018fdecdd
commit 2d178f5033

View File

@@ -168,8 +168,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
panel.ContentHeight = yMargin + optionsContainer.Bounds.Height; panel.ContentHeight = yMargin + optionsContainer.Bounds.Height;
optionsContainer.Bounds.Y = yMargin; optionsContainer.Bounds.Y = yMargin;
if (panel.ContentHeight < panel.Bounds.Height)
optionsContainer.Bounds.Y += (panel.Bounds.Height - panel.ContentHeight) / 2;
panel.ScrollToTop(); panel.ScrollToTop();
} }