From dca2038ba3a0f14d08ac566e7dcec9f07d42cbff Mon Sep 17 00:00:00 2001 From: Michael Freno Date: Sun, 14 Sep 2025 22:10:36 -0400 Subject: [PATCH] sync --- FlexLove.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FlexLove.lua b/FlexLove.lua index 5bbb549..0da49e9 100644 --- a/FlexLove.lua +++ b/FlexLove.lua @@ -611,7 +611,8 @@ function Window:calculateAutoWidth() for _, child in ipairs(self.children) do local childWidth = child.width or 0 local childX = child.x or 0 - local totalWidth = childX + childWidth + local paddingAdjustment = child.px * 2 + local totalWidth = childX + childWidth + paddingAdjustment if totalWidth > maxWidth then maxWidth = totalWidth @@ -631,7 +632,8 @@ function Window:calculateAutoHeight() for _, child in ipairs(self.children) do local childHeight = child.height or 0 local childY = child.y or 0 - local totalHeight = childY + childHeight + local paddingAdjustment = child.py * 2 + local totalHeight = childY + childHeight + paddingAdjustment if totalHeight > maxHeight then maxHeight = totalHeight