# Ionic Nav bar scrolls with ion-content

**URL:** <https://forum.ionicframework.com/t/ionic-nav-bar-scrolls-with-ion-content/107711>\
**Category:** ionic-v3\
**Created:** [October 4, 2017, 10:45pm UTC](https://forum.ionicframework.com/t/ionic-nav-bar-scrolls-with-ion-content/107711 "2017-10-04T22:45:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harpreet2068](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@Harpreet2068](https://forum.ionicframework.com/u/Harpreet2068)\
**Post date:** [October 4, 2017, 10:45pm UTC](https://forum.ionicframework.com/t/ionic-nav-bar-scrolls-with-ion-content/107711/1 "2017-10-04T22:45:54Z")

</div>

New to ionic. Downloaded latest blank project and modified to create one input box, a submit button and a navigation bar in the header IOS OS 11 and device iphone6s. On clicking in the input field and scrolling up ion-content and header moves up. Tried CSS options position: fixed, absolute, ‘ion-fixed’ but none works.

Desired action : Header with Nav bar remains in fixed position.

Here is the Ionic info.  
cli packages:

@ionic/cli-utils : 1.12.0  
ionic (Ionic CLI) : 3.12.0  
global packages:

cordova (Cordova CLI) : 7.0.1  
local packages:

@ionic/app-scripts : 3.0.0  
Cordova Platforms : ios 4.4.0  
Ionic Framework : ionic-angular 3.7.1  
System:

ios-deploy : 1.9.1  
ios-sim : 5.0.13  
Node : v6.9.4  
npm : 4.2.0  
OS : macOS Sierra

---

<div class="post-metadata">

**Author:** ![SigmundFroyd](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sigmundfroyd/32/111604_2.png) [@SigmundFroyd](https://forum.ionicframework.com/u/SigmundFroyd)\
**Post date:** [October 4, 2017, 11:00pm UTC](https://forum.ionicframework.com/t/ionic-nav-bar-scrolls-with-ion-content/107711/2 "2017-10-04T23:00:37Z")

</div>

What does your template look like?

---

<div class="post-metadata">

**Author:** ![Harpreet2068](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@Harpreet2068](https://forum.ionicframework.com/u/Harpreet2068)\
**Post date:** [October 4, 2017, 11:18pm UTC](https://forum.ionicframework.com/t/ionic-nav-bar-scrolls-with-ion-content/107711/3 "2017-10-04T23:18:28Z")

</div>

here is the html template and it is default. No fancy CSS.

 Store ID 

| Please enter client identifier. |

 Enter Id   
 Save

---

<div class="post-metadata">

**Author:** ![Harpreet2068](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@Harpreet2068](https://forum.ionicframework.com/u/Harpreet2068)\
**Post date:** [October 4, 2017, 11:43pm UTC](https://forum.ionicframework.com/t/ionic-nav-bar-scrolls-with-ion-content/107711/4 "2017-10-04T23:43:51Z")

</div>

I have tried position:all values, overflow-y: all values, display: block for header css and they don’t work.

\<ion-header\>  
\<ion-navbar\>  
\<ion-title no-border\>Store ID\</ion-title\>  
\</ion-navbar\>  
\</ion-header\>

\<ion-content\>  
\<div \>  
\<ion-card\>  
\<table \>  
\<tr\>\<td \>Please enter client identifier.  
\</td\>\</tr\>  
\</table\>  
\</ion-card\>

\<div\>  
\<form #f=“ngForm” \>  
\<ion-item \>  
\<ion-label \>Enter Id\</ion-label\>  
\<ion-input type=“text” name=“clientId” required [(ngModel)] = “clientId” autocapitalize=“off” autocorrect=“off”\> \</ion-input\>  
\</ion-item\>  
\<br\>  
\<button ion-button type=“submit” full small block  
[disabled]=“disableSubmit” (click)=“storeId(clientId)”\> Save \</button\>  
\</form\>  
\</div\>  
\</div\>  
\</ion-content\>

---

<div class="post-metadata">

**Author:** ![Harpreet2068](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@Harpreet2068](https://forum.ionicframework.com/u/Harpreet2068)\
**Post date:** [October 5, 2017, 12:36am UTC](https://forum.ionicframework.com/t/ionic-nav-bar-scrolls-with-ion-content/107711/5 "2017-10-05T00:36:57Z")

</div>

I resolved the scrolling of the nav bar using following code. Any other suggestion is appreciated as it causes a different issue.

ionViewDidEnter() {  
this.platform.ready().then(() =\> {  
Keyboard.disableScroll(true);  
});  
}

Now if I select an input field and scroll the cursor flickers crazily. Probably some auto focus. Any help with this is appreciated.

---

<div class="post-metadata">

**Author:** ![sohandhainwal](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@sohandhainwal](https://forum.ionicframework.com/u/sohandhainwal)\
**Post date:** [October 5, 2017, 4:52am UTC](https://forum.ionicframework.com/t/ionic-nav-bar-scrolls-with-ion-content/107711/6 "2017-10-05T04:52:27Z")

</div>

Yes I have same issue in ionic1, When I focus on input my view push up . And I am also set cordova.plugins.Keyboard.disableScroll(true); but nothing happened. Do you have any Idea how can I resolved this issue?  
Thanks
