Fix numberbox padding after its parameters change
This commit is contained in:
parent
154a85cd41
commit
5b11adb397
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user