Skip to content

bug: ion-header disappears on mobile browser when keyboard opens - tabbed app #25131

@JoeBoxr

Description

@JoeBoxr

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

Using a tabbed app in the mobile browser the ion-header is being pushed off the top when the mobile keyboard opens. Please note this issue only occurs when fullscreen is set to true.

Expected Behavior

Header stays positioned at the top.

Steps to Reproduce

Hello.

To create the bug:

  1. Create tabbed app for a mobile browser
  2. On a tab page place a ion-header and ion-content with fullscreen set to true
  3. Add a div to the tab page with a view height of roughly 70 depending on your device
  4. Add a ion-input to activate the mobile keyboard
  5. ion-header will get pushed off the screen

Sample code below:

<ion-header [translucent]="true">
<ion-toolbar>
<ion-title>
Tab 1
</ion-title>
</ion-toolbar>
</ion-header>

<ion-content [fullscreen]="true">
<div style="height: 70vh">
Mobile Device Fullscreen Header Bug - [fullscreen]="true"
</div>
<ion-item>
<ion-input placeholder="Click Here - Watch Header Disappear"></ion-input>
</ion-item>
</ion-content>

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 5.4.4 (C:\Users\Admin\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 6.1.0
@angular-devkit/build-angular : 13.2.6
@angular-devkit/schematics : 13.2.6
@angular/cli : 13.2.6
@ionic/angular-toolkit : 6.1.0

Utility:

cordova-res : not installed
native-run : not installed

System:

NodeJS : v14.17.0 (C:\Program Files\nodejs\node.exe)
npm : 6.14.13
OS : Windows 10

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions