fixed: update root window size before every render