Adds TopBottomSpacing to GridLayout.

This commit is contained in:
deniz1a
2015-08-04 01:46:55 +03:00
parent 90897481f9
commit 347143ba87
2 changed files with 8 additions and 9 deletions

View File

@@ -38,7 +38,8 @@ namespace OpenRA.Mods.Common.Widgets
widget.ContentHeight += w.Bounds.Height + widget.ItemSpacing;
}
// The loop above appended an extra widget.ItemSpacing after the last item. Replace it with proper bottom spacing.
// The loop above appended an extra widget.ItemSpacing after the last item.
// Replace it with proper bottom spacing.
widget.ContentHeight += widget.TopBottomSpacing - widget.ItemSpacing;
}
}