Fixed rescaling in portrait mode