From 306bece7095cfe3b2690b697770cd20582d5c132 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 28 Nov 2010 10:41:41 +1300 Subject: [PATCH] Tweak ra lobby scrollpanel margins. --- OpenRA.Game/Widgets/ScrollPanelWidget.cs | 2 ++ mods/ra/chrome/gamelobby.yaml | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenRA.Game/Widgets/ScrollPanelWidget.cs b/OpenRA.Game/Widgets/ScrollPanelWidget.cs index 95c425a831..bee73f467a 100644 --- a/OpenRA.Game/Widgets/ScrollPanelWidget.cs +++ b/OpenRA.Game/Widgets/ScrollPanelWidget.cs @@ -90,6 +90,8 @@ namespace OpenRA.Widgets { if (UpPressed && ListOffset <= 0) ListOffset += ScrollVelocity; if (DownPressed) ListOffset -= ScrollVelocity; + + if (ListOffset > 0) ListOffset = 0; } public override bool LoseFocus (MouseInput mi) diff --git a/mods/ra/chrome/gamelobby.yaml b/mods/ra/chrome/gamelobby.yaml index 6686d31f9c..d9d2709e44 100644 --- a/mods/ra/chrome/gamelobby.yaml +++ b/mods/ra/chrome/gamelobby.yaml @@ -33,13 +33,13 @@ Background@SERVER_LOBBY: Id:PLAYERSX X:20 Y:75 - Width:500 + Width:504 Height:227 Children: Container@PLAYERS: Id:PLAYERS - X:2 - Y:1 + X:5 + Y:5 Width:500 Height:2270 Children: