Cache scroll width/height

This commit is contained in:
2023-06-18 14:18:15 -05:00
parent a60b09a110
commit b1b8fc8556
2 changed files with 10 additions and 3 deletions

View File

@@ -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