bug: After keyboard open, the content height is wrong
Type: bug
Ionic Version: 1.x
Platform: android 5.1 webview
1.Create a screen without header and footer bars 2.Open the keyboard to enter something => The height of the content is calculated in the wrong fashion
Code wrong (Original Source code scrollViewNative.js): scrollViewOffsetHeight = Math.max(0, Math.min(self.__originalContainerHeight, self.__originalContainerHeight - (e.detail.keyboardHeight - 43)));
Code right (Altered Source Code): scrollViewOffsetHeight = Math.max(0, Math.min(self.__originalContainerHeight, self.__originalContainerHeight - (e.detail.keyboardHeight - ($scope.$hasHeader ? 43 : 0))));
This could of course also be solved in different ways, but this helped me solving the problem.
This looks like the same issue as https://github.com/driftyco/ionic/issues/5800 but im not sure
Until now i also found out that the problem is still the calculation of the height of the scrollview, but you also need to set the App to fullscreen and set hideKeyboardAccessoryBar(true) .
My problem was fixed because we do not have a Fullscreen App anymore, therefore i can not provide a more detailed problem description.
Regards, Andre
Sounds like it's fixed now, and the upcoming release has a few more fixes. Thanks.
@adamdbradley Could you reopen the issue? The problem is still here in v1.3. The following formula should probably solve the issue and eliminate the magical number 43.
scrollViewOffsetHeight = Math.max(0, Math.min(self.__originalContainerHeight, self.__originalContainerHeight - (e.detail.keyboardHeight - (window.innerHeight - rect.bottom))));
@jgw96 @adamdbradley The bug is still relevant. Check this fix.
Hello, thanks for using Ionic! This has been fixed in the latest Ionic 1 release 🎉
@jgw96 No, it's another bug. And it is still there
@jgw96 Any update for this issue yet ? Still having this issue in Ionic version 1.3.3
Ionic v1 lives here now: https://github.com/ionic-team/ionic-v1
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.