Skip to content

[Android and Start in fullscreen off only] Webview becomes smaller when the virtual keyboard is displayed. #729

Closed

Description

@R-A-77

[Eng]
Dear owner,
Webview becomes smaller when the virtual keyboard is displayed.
The problem occurs when "Start in fullscreen mode" is off in the player settings of unity.
This does not happen when “Start in fullscreen mode” is on.
Please let me know how to stop it from getting smaller.
Related Issues #300 ?

= Environment =
SHA-1 : 3ec19e9
OS : Android 11
Unity Settings : Player Settings(Android) -> Start in fullscreen mode off
Source : SampleWebView.cs
Change Code : webViewObject.SetMargins(0, 0, 0, 0);
Remarks : Also occurs with Screen.fullscreen=false.
The reason for off the full screen is to show the navigation bar.

[JP]
お世話になっております。
Full Screen(off)の状態でキーボードを表示すると、
WebView部分がFull Screen(on)時と比べて小さくなってしまいます。
Navigation Barを常に表示したいため、FullScreen(off)で利用したいです。
何か回避方法はありますでしょうか?
関連Issues #300 ?

FullScreen_off_Android :

FullScreen_on_Android :

Activity

  1. KojiNakamaru commented on Aug 23, 2021

    @KojiNakamaru
    Member

    Thank you for the report. I fixed the issue with #730 and updated binaries. Could you please try the latest?

    ありがとうございます。 #730 で修正してバイナリを更新したので、最新版をお試しいただけますか?

  2. R-A-77 commented on Aug 24, 2021

    @R-A-77
    Author

    Dear @KojiNakamaru san
    I confirmed #730 and the solution 7ce5342 .
    When the full screen is off and the keyboard is displayed, the height of the screen is not smaller.
    There was no problem with the solution 7ce5342 .
    Verify OK. Thank you and Good solution !!!

    お世話になっております。
    ご確認とご対応して頂きありがとうございます。
    #730 のソリューションは期待値通りに動作し、問題ございませんでした。
    ありがとうございました。

    FullScreen_off_Android_after_Fix(OK) :

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