aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GUI/ItemGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Frontend/GUI/ItemGroup.cs')
-rw-r--r--ShiftOS.Frontend/GUI/ItemGroup.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ShiftOS.Frontend/GUI/ItemGroup.cs b/ShiftOS.Frontend/GUI/ItemGroup.cs
index e52a17f..13f02c6 100644
--- a/ShiftOS.Frontend/GUI/ItemGroup.cs
+++ b/ShiftOS.Frontend/GUI/ItemGroup.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using Microsoft.Xna.Framework;
namespace ShiftOS.Frontend.GUI
{
@@ -12,7 +13,7 @@ namespace ShiftOS.Frontend.GUI
private FlowDirection _flowDir = FlowDirection.LeftToRight;
private int _initialgap = 2;
- protected override void OnLayout()
+ protected override void OnLayout(GameTime gameTime)
{
if (AutoSize)
{
@@ -44,7 +45,6 @@ namespace ShiftOS.Frontend.GUI
ctrl.X = _x;
ctrl.Y = _y;
ctrl.Dock = DockStyle.None;
- ctrl.Layout();
_x += ctrl.Width + _gap;
if (_maxYForRow < ctrl.Height + _gap)