Fix preview orientation changes.