Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
[ ] 4.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
Current behavior:
When you navigate to another page, open and dismiss the keyboard and go back to the previous page the ion-content will be hidden behind the ion-header.
Expected behavior:
ion-content not hidden behind the ion-header
Steps to reproduce:
Using the ionic-conference-app with version 3.7 or 3.7.1 of Ionic add a text input in session-detail.html.
Navigate to a session-detail through the schedule page.
Open and dismiss the keyboard with the text input added.
Go back to the schedule page.
You will now see some content is hidden behind the ion-header. If you change tabs it will restore.
We have this issue too.
Confirm, i have same problem. Problem generated when upgrade to 3.7+
I'm seeing this same behavior on iOS too. Forcing a content resize in the parent page (at least in my app) is a workaround:
export class LayoutsPage {
@ViewChild('content') content: Content;
...
ionViewDidEnter() {
this.content.resize();
}
I'm also seeing this problem if you change orientation in the child page (without opening a keyboard) and then return to the parent page and change the orientation back while on the parent page.
Same problem in ionic 3.7.1
Confirmed in ionic 3.7.1 on a Samsung galaxy note 4
Hello! Thank you for opening an issue with us!
I have duplicated this. Note to self: does not occur with 3.6.1
, does occur starting with 3.7.0
Thank you for using Ionic
This could be related to the iPhoneX css changed, though I would have thought the css was isolated to iOS only...
Could someone install ionic-angular@nightly
and please test?
Same problem with ionic-angular@nightly
Another test case is device rotation change while off the list view and returning to the list view.
Using the Ionic Conference app deployed on a physical device:
I have this same bug with these steps :
This bug it's not declare when i back with my keyboard is open.
I have same problem in ionic 3.7.1
Also seeing this
I have the same issue with 3.7.1 and it also happens in the browser.
Basically from what I could tell when there is a resize while a pushed page is in view, the margin-top property get's removed from ion-content css and when you pop the stack it does not force a resize in the main content. Resizing it manually fixes it.
@mariossavva, yup same issue here
Experiencing the same issue with 3.7.1 in these two scenarios:
Screen orientation change
Keyboard
I have this same bug in ionic 3.7.1(Android/IOS)
Same here. Android and iOS on 3.7.1
Experiencing the same thing.
To Reproduce:
Downgrading it to 3.6 to fix the problem.
Can someone please provide a sample project that has this issue? I have not been able to replicate this locally.
@mhartington - duplicated using instructions from OP:
Using the ionic-conference-app with version 3.7 or 3.7.1 of Ionic add a text input in session-detail.html.
Navigate to a session-detail through the schedule page.
Open and dismiss the keyboard with the text input added.
Go back to the schedule page.
You will now see some content is hidden behind the ion-header. If you change tabs it will restore.
This is on a Galaxy Note 4. Android 6.0.1
Also tried with latest nightly ([email protected]
) and still can duplicate. Here is repo if it is helpful:
This behavior happens when I pop the view using the Android back button only, works fine if I pop using the app back button. Can reproduce in >= 3.7.0.
Perfect, I can replicate this. Thanks yall.
Hey yall, I got a fix for this that I would like you to test out.
Please unzip this and place it in your node_modules, then deploy to your device.
We were originally calling content.resize()
when ever the window would resized, which was causing the issue. Now we only call it on orientation change.
@mhartington Hi, I have tested it. It works!
To make it work
cli packages:
@ionic/cli-utils : 1.13.1
ionic (Ionic CLI) : 3.13.1
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 3.0.0
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.7.1-201710192121
System:
Node : v6.9.4
npm : 4.3.0
OS : Windows 10
Tested with :
All the above works. Great work! 👍 🥇
By the way, what was the ionic-angular.zip version based on? was it 3.7.1?
@mhartington I tried the patch on the scenario described in https://github.com/ionic-team/ionic/issues/13172 but the problem still persists in the Ionic super starter app: If I rotate an iOS device 90 degrees and back again and presses back, the topmost content on the previous page is still hidden by the navbar. Perhaps I prematurely closed that ticket if the problems are not as related as believed?
Can you please see this issue too? @mhartington
https://github.com/ionic-team/ionic/issues/13194
@gammelby I will look at it and try to recreate
Can people try this? Same instructions as before, this should take care of the shifting content.
Works fine on my Galaxy Note 4 (Android 6.0.1) and fixes the issue.
On my iPhone 7 iOS 11.0.3 it just hangs on the splash screen (app does not hang on splash screen with 3.7.1)
I am going to try re-installing and re-verifying with your zip just to be sure.
UPDATE - must have been something wonky with my first install. After re-copy it works great on both platforms.
@mhartington When I try the latest patch, I get a runtime error when rotating the iOS device: "null is not an object (evaluating this.getNav().isActive), stack: handleOrientationChange [native code]"
It happens on the super starter app whenever I rotate the device.
@mhartington I can confirm that your fixes on master (i.e. 3.7.1-201710201922) do fix the problem at least on android and browser builds. Thank you very much !
Thanks for working on this. Please include this fix in 3.7.2 and release asap.
I can confirmed it worked flawlessly. Test are done the same as my previous post.
Thank you very much on solving this issue.
@mhartington With your latest fixes, if the original page was using virtualScroll, after pushing, editing, and popping another page, the original list only shows a single list item in the middle of the page. It appears that the page height is not calculating correctly after popping the other page.
Edit: Your fix (3.7.1-201710202012) along with pull request #13143 fixes the problem for virtualScroll also.
@mhartington With [email protected], I still see the same issue as described in https://github.com/ionic-team/ionic/issues/13172 with the default super starter app - but the null exception in the patch attached here has been fixed.
Edit: Reopening https://github.com/ionic-team/ionic/issues/13172 as this ticket is closed and probably not as related as I thought initially.
@polfernandez - I think you have that in the wrong issue. This issue had to do with the ion-content
section being hidden behind the navbar when you would:
(see full description in OP)
This one did not have to do with the whole screen scrolling when the keyboard displays.
Thank you on solving this issue,it works on 3.7.1-201710201922!
+1, thanks, this work for me
+1 I have this same bug in ionic 3.7.1 ios9.3 when i use cordova-plugin-ionic-webview
how can i resolve it
Is this fixed in Ionic 1.3.5 ?
@saschwarz your solution works only if I change the orientaion. Without changing orientation contetn remains behind header.
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.
Most helpful comment
Experiencing the same issue with 3.7.1 in these two scenarios:
Screen orientation change
Keyboard