[BUG] Getting the right window height or width size in some unknown scenes