Fix numberbox padding after its parameters change

This commit is contained in:
Brandon Dyck 2024-04-19 13:06:36 -06:00
parent 154a85cd41
commit 5b11adb397

View File

@ -335,11 +335,11 @@ function newobject:SetMax(max)
if self.value > max then if self.value > max then
self.value = max self.value = max
self:updateinput()
if onvaluechanged then if onvaluechanged then
onvaluechanged(self, max) onvaluechanged(self, max)
end end
end end
self:updateinput()
return self return self
@ -367,11 +367,11 @@ function newobject:SetMin(min)
if self.value < min then if self.value < min then
self.value = min self.value = min
self:updateinput()
if onvaluechanged then if onvaluechanged then
onvaluechanged(self, min) onvaluechanged(self, min)
end end
end end
self:updateinput()
return self return self
@ -484,6 +484,7 @@ end
function newobject:SetDecimals(decimals) function newobject:SetDecimals(decimals)
self.decimals = decimals self.decimals = decimals
self:updateinput()
return self return self
end end