Fix the option window's position issue in rotate mode