mirror of
https://github.com/Insality/druid
synced 2025-11-27 11:20:54 +01:00
Solve #169 Fix on_layout_change
This commit is contained in:
@@ -78,7 +78,7 @@ end
|
||||
|
||||
|
||||
function Slider.on_layout_change(self)
|
||||
self:set(self.value, true)
|
||||
self:set(self.value)
|
||||
end
|
||||
|
||||
|
||||
|
||||
@@ -87,6 +87,12 @@ function Timer.update(self, dt)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function Timer.on_layout_change(self)
|
||||
self:set_to(self.last_value)
|
||||
end
|
||||
|
||||
|
||||
--- Set text to text field
|
||||
-- @tparam Timer self
|
||||
-- @tparam number set_to Value in seconds
|
||||
|
||||
Reference in New Issue
Block a user