Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix content overflow below navigation bar, and black bar above the keyboard when it is shown #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ebhsgit
Copy link

@ebhsgit ebhsgit commented Dec 14, 2020

Fix for
#117
#132

Both of these issues are due to incorrect calculation of the frameLayoutParams.height value

Child content getWindowVisibleDisplayFrame() calculates the area which the user can view the content.

The top position is below the status bar. The bottom position is above the navigation bar, keyboard and other UI element from the bottom.

If app is in full screen mode, then the actual usable height is the distance from the top of the screen to the bottom of the returned Rect.

So, if app is in full screen, return the bottom position of the rect. Otherwise use the height of the visible area.

…yboard when it is shown.

* Both of these issues is due to incorrect calculation of the frameLayoutParams.height value
@prtuson
Copy link

prtuson commented Aug 6, 2021

I have tried this fix on a Miui 11 running android 11. It works fine if either the navigation bar or blackbar are being used. If the blackbar is suppressed, i.e. hidden, then the bottom position is missing still.

itbeyond added a commit to itbeyond/cordova-plugin-ionic-keyboard that referenced this pull request Sep 21, 2021
…reen)

If you set the preference for resizeOnFullScreen and you do not have your app running in either fullscreen mode (via StatusBar) or Immersive fullscreen mode (via cordova-plugin-fullscreen) the height is calculated wrong and some content between 8 and 40 pixels dependant on device will be off the bottom of the screen. This update looks for isFullScreen

Based on and fixes ionic-team#156, ionic-team#117, ionic-team#132, ionic-team#134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants