# IOS screen doesn't resize when changing landscape to portrait

**URL:** <https://forum.ionicframework.com/t/ios-screen-doesnt-resize-when-changing-landscape-to-portrait/32958>\
**Category:** ionic-v1\
**Created:** [September 22, 2015, 12:22pm UTC](https://forum.ionicframework.com/t/ios-screen-doesnt-resize-when-changing-landscape-to-portrait/32958 "2015-09-22T12:22:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urtado](https://avatars.discourse-cdn.com/v4/letter/u/9fc29f/32.png) [@Urtado](https://forum.ionicframework.com/u/Urtado)\
**Post date:** [September 22, 2015, 12:22pm UTC](https://forum.ionicframework.com/t/ios-screen-doesnt-resize-when-changing-landscape-to-portrait/32958/1 "2015-09-22T12:22:47Z")

</div>

Hi, i’m struggling with this problem and i hope someone can help me.

When i start the app, it’s normal until i change the orientation from landscape from portrait. The screen doesn’t resize and the height and width still on landscape sizes no matter what.

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/5/f/5f50d5e037d08f6dfff8325c426a529ad424ab64.PNG)

Here’s some examples from screens shot. The first one was on portrait and i put it on landscape and nothing happens, but on the second it was on landscape and i put it on portrait and that’s when the ‘bug’ happens.

I already tried to fix it with css, changing a lot meta tag, trying to do $ionicScrollDelegate.resize() onchangeorientation envent and other events but nothing works…

I hope i can get some help. Thanks!

---

<div class="post-metadata">

**Author:** ![bradmartin](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bradmartin/32/13210_2.png) [@bradmartin](https://forum.ionicframework.com/u/bradmartin)\
**Post date:** [September 22, 2015, 1:25pm UTC](https://forum.ionicframework.com/t/ios-screen-doesnt-resize-when-changing-landscape-to-portrait/32958/2 "2015-09-22T13:25:10Z")

</div>

Check your config.xml, there is a line to specify orientation. Post the config.xml here if you want. For my app I only want portrait so I’ve set this preference to that value.

```
    <preference name="Orientation" value="portrait"/>
```

---

<div class="post-metadata">

**Author:** ![Urtado](https://avatars.discourse-cdn.com/v4/letter/u/9fc29f/32.png) [@Urtado](https://forum.ionicframework.com/u/Urtado)\
**Post date:** [September 23, 2015, 1:41pm UTC](https://forum.ionicframework.com/t/ios-screen-doesnt-resize-when-changing-landscape-to-portrait/32958/3 "2015-09-23T13:41:06Z")

</div>

i took out the meta tag and somehow it works…
