Properly adjust content offset after rotation.