update player list in lobby gracefully for better user experience
This commit is contained in:
@@ -24,5 +24,16 @@ namespace OpenRA.Widgets
|
||||
w.Bounds.Y += widget.ContentHeight;
|
||||
widget.ContentHeight += w.Bounds.Height + widget.ItemSpacing;
|
||||
}
|
||||
|
||||
|
||||
public void AdjustChildren()
|
||||
{
|
||||
widget.ContentHeight = widget.ItemSpacing;
|
||||
foreach (var w in widget.Children)
|
||||
{
|
||||
w.Bounds.Y = widget.ContentHeight;
|
||||
widget.ContentHeight += w.Bounds.Height + widget.ItemSpacing;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user