ionic-team / ionic-plugin-keyboard

Ionic Keyboard Plugin for Cordova
Apache License 2.0
611 stars 278 forks source link

Keyboard overlaps input if input is "position:absolute" #299

Open felipegrin opened 6 years ago

felipegrin commented 6 years ago

I'm making a chat app that has an ion-input at the bottom of the screen inside a div with the following CSS:

position: absolute; bottom: 0;

The problem is that when running the app on certain android phones the keyboard overlaps the input and the user can't see what he is typing. In iOS is everything working fine.

If I remove the CSS above, everything works fine (the input stays on focus, at the middle of the screen).

The strangest part, is that if I create a new project and try to recreate the problem, i simply can't. Even with the CSS above everything works fine, in all devices. The problems seems to appear only in the specific project I'm working on, but i have no clue what might be causing this.