ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.29k stars 109 forks source link

Keyboard height calculation is incorrect in some devices and specific apps #2117

Open kugiigi opened 1 year ago

kugiigi commented 1 year ago

Steps to reproduce

  1. Open Morph (Or Palitan if you have it installed)
  2. In Morph, go to a site with a chat page like UBports Forum's chat
  3. Open the keyboard by clicking on the bottom text field

Expected behavior

The bottom of the app is anchored to top of the keyboard and all UI can still be seen while the keyboard is shown

Actual behavior

In some apps like Morph and Palitan, you can notice that the some part of the bottom part is hidden behind the keyboard

Xperia X image

Meizu MX4 image

Logfiles and additional information

It's possible that it affects apps that use QQC2 and/or HiDPI scaling option which calculates the keyboard height using UITK's grid unit. I'm not sure why it happens in some but not others. I have other devices in devel or focal and some also have the issue but some not.