Skip to content

Commit c9a714e

Browse files
committed
hotbar size fix
1 parent a23ea89 commit c9a714e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public FloatRect RenderBounds()
6868
X = HotbarWindow.LocalPosToCanvas(default).X,
6969
Y = HotbarWindow.LocalPosToCanvas(default).Y,
7070
Width = HotbarWindow.Width,
71-
Height = HotbarWindow.Height
71+
Height = HotbarWindow.Height,
7272
};
7373

7474
return rect;

Intersect.Client.Framework/Gwen/Control/ImagePanel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,11 @@ public override bool SetBounds(int x, int y, int width, int height)
433433
public override Point GetChildrenSize()
434434
{
435435
var textureSize = _textureSourceBounds.Size;
436+
if (TextureNinePatchMargin != null)
437+
{
438+
textureSize = default;
439+
}
440+
436441
var elementChildrenSize = base.GetChildrenSize();
437442
var childrenSize = new Point(
438443
Math.Max(elementChildrenSize.X, textureSize.X),

0 commit comments

Comments
 (0)