update player list in lobby gracefully for better user experience
This commit is contained in:
@@ -14,7 +14,7 @@ using OpenRA.Graphics;
|
||||
|
||||
namespace OpenRA.Widgets
|
||||
{
|
||||
public interface ILayout { void AdjustChild(Widget w); }
|
||||
public interface ILayout { void AdjustChild(Widget w); void AdjustChildren(); }
|
||||
|
||||
public class ScrollPanelWidget : Widget
|
||||
{
|
||||
@@ -95,6 +95,8 @@ namespace OpenRA.Widgets
|
||||
|
||||
Game.Renderer.EnableScissor(backgroundRect.X + 1, backgroundRect.Y + 1, backgroundRect.Width - 2, backgroundRect.Height - 2);
|
||||
|
||||
Layout.AdjustChildren();
|
||||
|
||||
foreach (var child in Children)
|
||||
child.DrawOuter();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user