We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a8dd00 commit 1399b70Copy full SHA for 1399b70
Intersect.Client.Framework/Gwen/Control/Base.cs
@@ -3343,8 +3343,9 @@ public virtual bool DragAndDrop_CanAcceptPackage(Package p)
3343
public virtual bool SizeToChildren(bool width = true, bool height = true)
3344
{
3345
var size = GetChildrenSize();
3346
- size.X += Padding.Right;
3347
- size.Y += Padding.Bottom;
+ var padding = Padding;
+ size.X += padding.Right + padding.Left;
3348
+ size.Y += padding.Bottom + padding.Top;
3349
3350
if (!SetSize(width ? size.X : Width, height ? size.Y : Height))
3351
0 commit comments