From 5b11adb3978d9d06c68923c3edc8cb2136e341ac Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Fri, 19 Apr 2024 13:06:36 -0600 Subject: [PATCH] Fix numberbox padding after its parameters change --- loveframes/objects/numberbox.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loveframes/objects/numberbox.lua b/loveframes/objects/numberbox.lua index 878d940..c5218fc 100644 --- a/loveframes/objects/numberbox.lua +++ b/loveframes/objects/numberbox.lua @@ -335,11 +335,11 @@ function newobject:SetMax(max) if self.value > max then self.value = max - self:updateinput() if onvaluechanged then onvaluechanged(self, max) end end + self:updateinput() return self @@ -367,11 +367,11 @@ function newobject:SetMin(min) if self.value < min then self.value = min - self:updateinput() if onvaluechanged then onvaluechanged(self, min) end end + self:updateinput() return self @@ -484,6 +484,7 @@ end function newobject:SetDecimals(decimals) self.decimals = decimals + self:updateinput() return self end