mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Solve #169 Fix on_layout_change
This commit is contained in:
@@ -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