Solve #182 add table pool for events

This commit is contained in:
Insality
2022-04-05 18:57:40 +03:00
parent 2779f9cf7a
commit dff522fbaa
24 changed files with 244 additions and 6 deletions

View File

@@ -39,6 +39,12 @@ function Layout:init(node, mode, on_size_changed_callback)
end
function Layout.on_internal_remove(self)
component.on_internal_remove(self)
self.on_size_changed:clear()
end
function Layout:on_window_resized()
local window_x, window_y = window.get_size()
local stretch_x = window_x / self.window_size.x