capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

App goes off-screen when FLAG_LAYOUT_NO_LIMITS is set

Open codemaster138 opened this issue 2 years ago • 0 comments

Bug Report

Plugin(s)

  • @capacitor/keyboard

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 3.5.1
  @capacitor/core: 3.5.1
  @capacitor/android: 3.5.1
  @capacitor/ios: 3.5.1

Installed Dependencies:

  @capacitor/cli: not installed
  @capacitor/core: 3.5.1
  @capacitor/android: 3.5.1
  @capacitor/ios: 3.5.1

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

  • Android

Current Behavior

When the flag FLAG_LAYOUT_NO_LIMITS is set by another plugin (in my case, to make the navigation bar transparent) AND the resizeOnFullScreen option of @capacitor/keyboard is set to true, it sets the webview of the app to be about 9874px tall (width is, unsurprisingly, unaffected). My actual height is about 700-800px

Expected Behavior

The WebView should still fit the screen, even if the FLAG_LAYOUT_NO_LIMITS is set

Code Reproduction

https://github.com/codemaster138/cap-screensize-issue-reproduction

Other Technical Details

/

Additional Context

/

codemaster138 avatar May 13 '22 16:05 codemaster138