ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
191 stars 177 forks source link

fix: android keyboard size and square viewport #178

Open lightSoulDev opened 9 months ago

lightSoulDev commented 9 months ago

Description: On some Android devices, there is an issue with the calculation of keyboard size, leading to an undesired viewport behavior. Specifically, when rapidly switching the device's orientation from landscape to portrait and back to landscape, the viewport becomes minimized to a black square. The side length of this square matches the device's portrait width.

This issue has persisted for several years and significantly impacts the user experience on affected Android devices.

Reproduction Steps:

  1. Start with an Android device in landscape mode.
  2. Rapidly switch the device to portrait mode.
  3. Quickly switch the device back to landscape mode.
  4. Observe the viewport becoming a black square, with a side length equal to the device's portrait width (a).

P.S. I can try to provide screenshots if necessary.