Window: fix resize jumps with top window scroll present
Window: unused variables removed