-
Notifications
You must be signed in to change notification settings - Fork 986
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
Incorrect keyboard-height
on Android
#15758
Comments
Hi @Parveshdhull, any updates on that issue? |
Hi @OmarBasem, I am currently on off time, So didn't got much time to look into the issue. I can work on this later. Also Please feel free to reassign if you want to work on it. |
hi @OmarBasem, I checked 3 devices and window-height is same, before and after upgrade
So issue with composer height is not happening due to that. Probably there are some new changes after rn upgrade which is causing that issue. Also, just to be sure, are you using same device as before for checking, because as you can see devices with notch doesn't include status bar height by default, and this is known issue. More information on that: |
Thanks a lot @Parveshdhull for checking this issue.
I am going to double-check if the RN upgrade is the first commit where this issue is happening. And whether the commit right before it is not cauing the issue. |
@Parveshdhull it is indeed caused from the RN upgrade. Here is how it looks the commit right before the upgrade: And here is how it looks the commit that upgrades RN (PR): I have also noticed one of the QAs having this issue on their device. You can see in the video in that comment at second 00:12 when the composer is maximized that it doesn't look right. |
|
Oh.. it seems it's happening on a few devices only. |
@Parveshdhull This issue is reproducible on Samsung S23 [Android 13] (which is the latest Samsung line-up). So I think this issue needs to be fixed. I will try to investigate more what's wrong. I see there are issues in |
@VladimrLitvinenko can you tell me which Android device were you using in that video: #15818 (comment) |
@OmarBasem Real device: Huawei p20 light, android 9 |
Research notes on this issue: |
@Parveshdhull can you let me know the devices you checked on |
So the problem is actually from the keyboard height. Keyboard height before upgrade: The difference between these 2 values is |
window-height
on Androidkeyboard-height
on Android
So a workaround for this is to subtract the keyboard's event |
Since upgrading to react-native v 0.67.5 in that commit I have noticed the value of
window-height
on my Android device has changed. Thewindow-height
value used to include thestatus-bar-height
. After that commit, it does not include thestatus-bar-height
. This issue happens on my Android device, but works fine on Emulator. This change inwindow-height
causes some UI problems, for example in the maximized composer.Expected Result
(from Emulator Pixel 3 API 30, Android v 11)
Actual Result
(from Samsung galaxy Note 10 Lite, Android v 11)
The text was updated successfully, but these errors were encountered: