Scaling when resizing window.