auto resize player window