Skip to content

Commit 204e2bb

Browse files
authored
hotbar size to contents before loading json to prevent ProcessAlignments() from screwing up the positioning AscensionGameDev#2619 (AscensionGameDev#2621)
1 parent 059a8c0 commit 204e2bb

File tree

1 file changed

+2
-0
lines changed
  • Intersect.Client.Core/Interface/Game/Hotbar

1 file changed

+2
-0
lines changed

Intersect.Client.Core/Interface/Game/Hotbar/HotBar.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public HotBarWindow(Canvas gameCanvas)
4343
Items.Add(hotbarItem);
4444
}
4545

46+
HotbarWindow.SizeToChildren();
47+
4648
HotbarWindow.LoadJsonUi(GameContentManager.UI.InGame, Graphics.Renderer.GetResolutionString());
4749

4850
HotbarWindow.SizeToChildren();

0 commit comments

Comments
 (0)