Skip to content

Commit 1399b70

Browse files
committed
fix resizing issue
1 parent 8a8dd00 commit 1399b70

File tree

1 file changed

+3
-2
lines changed
  • Intersect.Client.Framework/Gwen/Control

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3343,8 +3343,9 @@ public virtual bool DragAndDrop_CanAcceptPackage(Package p)
33433343
public virtual bool SizeToChildren(bool width = true, bool height = true)
33443344
{
33453345
var size = GetChildrenSize();
3346-
size.X += Padding.Right;
3347-
size.Y += Padding.Bottom;
3346+
var padding = Padding;
3347+
size.X += padding.Right + padding.Left;
3348+
size.Y += padding.Bottom + padding.Top;
33483349

33493350
if (!SetSize(width ? size.X : Width, height ? size.Y : Height))
33503351
{

0 commit comments

Comments
 (0)