Do not center lobby options vertically in the scroll panel
This commit is contained in:
committed by
Paul Chote
parent
f018fdecdd
commit
2d178f5033
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user