# Header Bar, larger in Cordova build

**URL:** <https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318>\
**Category:** ionic-v1\
**Created:** [February 24, 2014, 12:51am UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318 "2014-02-24T00:51:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidemanske](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@davidemanske](https://forum.ionicframework.com/u/davidemanske)\
**Post date:** [February 24, 2014, 12:51am UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/1 "2014-02-24T00:51:37Z")

</div>

I have a few ion-view’ss with ion-header-bar’s that look fine when browsing to the assets in a browser, but when they are deployed as an app, the headers have extra padding on the top. Has anyone else experienced the extra additional padding within the header?

PhoneGap/Cordova v3.3, latest ionic.

---

<div class="post-metadata">

**Author:** ![Bilal](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bilal](https://forum.ionicframework.com/u/Bilal)\
**Post date:** [February 26, 2014, 8:21pm UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/2 "2014-02-26T20:21:21Z")

</div>

Yes, I have the same issue.

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [February 26, 2014, 9:16pm UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/3 "2014-02-26T21:16:31Z")

</div>

Do you have a screenshot or sample code. Is this with iOS 6 or iOS 7 or Android ?

---

<div class="post-metadata">

**Author:** ![Bilal](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bilal](https://forum.ionicframework.com/u/Bilal)\
**Post date:** [February 27, 2014, 6:48am UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/4 "2014-02-27T06:48:50Z")

</div>

Here is the screenshot. ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/192/3a00c312712bd229.jpg)

It’s with iOS 7

Thanks!

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [February 27, 2014, 1:59pm UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/5 "2014-02-27T13:59:06Z")

</div>

Do have these settings in your config.xml?

```auto
    <preference name="fullscreen" value="true" />
    <preference name="webviewbounce" value="false" />
    <preference name="UIWebViewBounce" value="false" />
    <preference name="DisallowOverscroll" value="true" />

```

---

<div class="post-metadata">

**Author:** ![jough](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jough/32/7887_2.png) [@jough](https://forum.ionicframework.com/u/jough)\
**Post date:** [February 27, 2014, 2:49pm UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/6 "2014-02-27T14:49:36Z")

</div>

I can confirm that the header bar never shrinks on iOS7 regardless of whether the statusbar is visible or not in the last three versions of Ionic Framework, just running the default install with `ionic.Platform.fullScreen()` or `StatusBar.hide()`.

---

<div class="post-metadata">

**Author:** ![alexb](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexb](https://forum.ionicframework.com/u/alexb)\
**Post date:** [February 27, 2014, 5:55pm UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/7 "2014-02-27T17:55:55Z")

</div>

No idea what CAUSED this problem exactly except I have the same thing and have a short term fix that worked for me

a) I am assuming PhoneGap Build (where the status bar plugin was recently updated) (This hasn’t been mentioned in the thread so far)

b) Put this in your config.xml

```
<gap:plugin name="com.phonegap.plugin.statusbar" version="1.0.1"/>

```

That forces the previous version of the status bar, rather than the current one…

Fixed it for me… obviously there does need to be something that works with the latest version of the status bar plugin (available on Phone Gap build) … BUT this may help temporarily

This thread is the announcement (if you are on Phonegap Build)  
[http://community.phonegap.com/nitobi/topics/ios\_statusbarplugin\_important\_update](http://community.phonegap.com/nitobi/topics/ios_statusbarplugin_important_update)

---

<div class="post-metadata">

**Author:** ![Bilal](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bilal](https://forum.ionicframework.com/u/Bilal)\
**Post date:** [February 28, 2014, 3:51am UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/8 "2014-02-28T03:51:19Z")

</div>

> [@jough](#):
>
> StatusBar.hide()

Adding preferences didn’t work.  
Adding gap plugin name=“com.phonegap.plugin.statusbar” version=“1.0.1”/\> didn’t work

ionic.Platform.fullScreen() worked. Thanks @jough

@jough StatusBar.hide() never worked for me. It doesn’t hide the status bar.

@Calendee when the app starts it shows header bar correctly and immediately it adds padding.

Even though ionic.Platform.fullScreen() worked. It’s not a perfect solution as initially it shows the header bar with padding and then remove it.

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [February 28, 2014, 11:33am UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/9 "2014-02-28T11:33:49Z")

</div>

Any chance you can privately share your project with the Ionic team? I’ve got several Ionic apps in progress and have not seen this. It’s definitely worth having another set of eyes evaluate it.

---

<div class="post-metadata">

**Author:** ![Bilal](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bilal](https://forum.ionicframework.com/u/Bilal)\
**Post date:** [March 7, 2014, 7:10am UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/10 "2014-03-07T07:10:17Z")

</div>

Just found out that it happen when the app is run through AppGyver. It runs fine if I run it using ionic cli command ‘ionic run iOS’. Now I need to go through AppGyver configuration and see what is causing it.

---

<div class="post-metadata">

**Author:** ![jough](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jough/32/7887_2.png) [@jough](https://forum.ionicframework.com/u/jough)\
**Post date:** [March 7, 2014, 2:51pm UTC](https://forum.ionicframework.com/t/header-bar-larger-in-cordova-build/1318/11 "2014-03-07T14:51:49Z")

</div>

I’m not using AppGyver and I can see the header bar not shrinking when using `ionic.Platform.fullScreen()` (the header bar info hides but the height of the nav-bar doesn’t shrink).

You can see it fail on any iOS device or in the emulator by adding `ionic.Platform.fullScreen()` to the default created project. (`ionic start new_project` for example)
