Abstracting playerframe resize code so we minimise unexpected resizing of the playerframe.