# Ion-nav-title with header input does not render correctly in iOS simulator

**URL:** <https://forum.ionicframework.com/t/ion-nav-title-with-header-input-does-not-render-correctly-in-ios-simulator/28149>\
**Category:** ionic-v1\
**Created:** [July 12, 2015, 6:03am UTC](https://forum.ionicframework.com/t/ion-nav-title-with-header-input-does-not-render-correctly-in-ios-simulator/28149 "2015-07-12T06:03:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samfung](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@samfung](https://forum.ionicframework.com/u/samfung)\
**Post date:** [July 12, 2015, 6:03am UTC](https://forum.ionicframework.com/t/ion-nav-title-with-header-input-does-not-render-correctly-in-ios-simulator/28149/1 "2015-07-12T06:03:22Z")

</div>

Would someone please point me to the right direction to fix this issue?

I was able to put an input in the header and it was rendered nicely in the browser. But when I run it with the ios simulator, the input is shifted down.

> ```
> <ion-view>
> <ion-nav-title>
> <div class="bar bar-header item-input-inset">
> <label class="item-input-wrapper">
> <i class="icon ion-ios-search placeholder-icon"></i>
> <input type="search" placeholder="Search" ng-focus="focus()" ng-blur="blur()">
> </label>
> </div>
> </ion-nav-title>
> <ion-content>...</ion-content>
> </ion-view>
> 
> ```

In browser,

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/6/64d10c9da826be74295e320471d75538a74287b6.png)

In iOS simulator,

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/9/93f617bd464e727f3df66d1aca34e634c238eae7.png)

---

<div class="post-metadata">

**Author:** ![samfung](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@samfung](https://forum.ionicframework.com/u/samfung)\
**Post date:** [July 13, 2015, 3:51am UTC](https://forum.ionicframework.com/t/ion-nav-title-with-header-input-does-not-render-correctly-in-ios-simulator/28149/2 "2015-07-13T03:51:35Z")

</div>

I have been searching for almost two days about a possible workaround for this issue. I haven’t been able find any. I guess not many are using search?

---

<div class="post-metadata">

**Author:** ![delta98](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/delta98/32/77248_2.png) [@delta98](https://forum.ionicframework.com/u/delta98)\
**Post date:** [July 13, 2015, 2:53pm UTC](https://forum.ionicframework.com/t/ion-nav-title-with-header-input-does-not-render-correctly-in-ios-simulator/28149/3 "2015-07-13T14:53:29Z")

</div>

On a device/simulator Ionic adds padding for the device status bar. You need to make sure you are structuring your headers correctly.

Your search box needs to adjust it’s height for the `44px margin` that is applied to the top. More info here [https://github.com/delta98/ionic-platform-body-classes](https://github.com/delta98/ionic-platform-body-classes)

You can examine the classes in Safari web inspector.

---

<div class="post-metadata">

**Author:** ![samfung](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@samfung](https://forum.ionicframework.com/u/samfung)\
**Post date:** [July 13, 2015, 8:23pm UTC](https://forum.ionicframework.com/t/ion-nav-title-with-header-input-does-not-render-correctly-in-ios-simulator/28149/4 "2015-07-13T20:23:43Z")

</div>

I ended up removing bar-header css class and the input element fits nicely when running in iOS simulator.

---

<div class="post-metadata">

**Author:** ![juanpujol](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/juanpujol/32/84857_2.png) [@juanpujol](https://forum.ionicframework.com/u/juanpujol)\
**Post date:** [July 22, 2015, 2:05pm UTC](https://forum.ionicframework.com/t/ion-nav-title-with-header-input-does-not-render-correctly-in-ios-simulator/28149/5 "2015-07-22T14:05:27Z")

</div>

@samfung thanks man, you tip saved me here.

I was having the same problem with a button-bar

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/e/e103b5e664eeebb40f54e5a630b4031e9b4b9cf8.png)

Removing the `.bar-header` class solved my problem.
