bug: ion-header disappears on mobile browser when keyboard opens - tabbed app
See original GitHub issuePrerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
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:
- Create tabbed app for a mobile browser
- On a tab page place a ion-header and ion-content with fullscreen set to true
- Add a div to the tab page with a view height of roughly 70 depending on your device
- Add a ion-input to activate the mobile keyboard
- 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
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Thanks! I can reproduce this behavior. This appears to be caused by https://github.com/ionic-team/ionic-framework/issues/18532, so I am going to merge the two issues. The linked has to do with Cordova/Capacitor apps, but it is the same problem in a web browser as well.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.