diff --git a/OpenRA.Game/OpenRA.Game.csproj b/OpenRA.Game/OpenRA.Game.csproj
index cfecd37945..865b5e0642 100755
--- a/OpenRA.Game/OpenRA.Game.csproj
+++ b/OpenRA.Game/OpenRA.Game.csproj
@@ -188,7 +188,6 @@
-
@@ -202,6 +201,7 @@
+
diff --git a/OpenRA.Game/Widgets/GridLayout.cs b/OpenRA.Game/Widgets/GridLayout.cs
index a9f63116d5..fcb8efca20 100644
--- a/OpenRA.Game/Widgets/GridLayout.cs
+++ b/OpenRA.Game/Widgets/GridLayout.cs
@@ -26,18 +26,18 @@ namespace OpenRA.Widgets
widget.ContentHeight = widget.ItemSpacing;
pos = new int2(widget.ItemSpacing, widget.ItemSpacing);
}
-
+
if (pos.X + widget.ItemSpacing + w.Bounds.Width > widget.Bounds.Width - widget.ScrollbarWidth)
{
/* start a new row */
pos.X = widget.ItemSpacing;
pos.Y = widget.ContentHeight;
}
-
+
w.Bounds.X += pos.X;
w.Bounds.Y += pos.Y;
-
- pos.X += widget.Bounds.Width + widget.ItemSpacing;
+
+ pos.X += w.Bounds.Width + widget.ItemSpacing;
widget.ContentHeight = Math.Max(widget.ContentHeight, pos.Y + widget.ItemSpacing + w.Bounds.Height);
}
diff --git a/OpenRA.Game/Widgets/MapPreviewWidget.cs b/OpenRA.Game/Widgets/MapPreviewWidget.cs
index a28a1f57b5..aab4d9330f 100644
--- a/OpenRA.Game/Widgets/MapPreviewWidget.cs
+++ b/OpenRA.Game/Widgets/MapPreviewWidget.cs
@@ -21,10 +21,12 @@ namespace OpenRA.Widgets
public Func