Skip to content

[Android Keyboard Height] Page is pushed outside of screen when opening the keyboard after rotation #807

Closed

Description

@lavikabel

Hi,
First of all I must say that I love this plugin, you have done an amazing job and keep supporting it which makes it even more impressive, thanks man.

I have a problem with the calculation of the keyboard height on android.
If I load the page in portrait mode and then rotating to landscape opening the keyboard will push the page outside of screen.

I feel its a same issue as #729 but there its a full screen.

I tried to debug and I think its because mWindowVisibleDisplayFrameHeight is only calculate once (in init()) and not when changing orientation.

I added the calculation code from the init() in SetMargin() and the problem was solved.

Thanks

Activity

  1. KojiNakamaru commented on Jun 1, 2022

    @KojiNakamaru
    Member

    Thank you for your report. I tried to import your refinement but found some odd behaviour which is difficult to avoid, so I updated the code as in #809. Could you please check the latest binaries.

  2. lavikabel commented on Jun 3, 2022

    @lavikabel
    Author

    Great its working!!
    Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions