Made some small changes to the resize feature. So that if aligned is enabled the width of the player can maximum be 1040px.