mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-18 22:02:34 +00:00
Cache scroll width/height
This commit is contained in:
@@ -173,6 +173,9 @@ module CyberarmEngine
|
||||
old_width = @width
|
||||
old_height = @height
|
||||
|
||||
@cached_scroll_width = nil
|
||||
@cached_scroll_height = nil
|
||||
|
||||
if is_root?
|
||||
@width = @style.width = window.width
|
||||
@height = @style.height = window.height
|
||||
|
||||
Reference in New Issue
Block a user