Skip to content

resizeOnFullScreen is incompatible with new SystemBars pluginΒ #46

@aeharding

Description

@aeharding

Bug Report

Capacitor Version

➜  voyager git:(main) npx cap doctor
πŸ’Š   Capacitor Doctor  πŸ’Š

Latest Dependencies:

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

Installed Dependencies:

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

[success] Android looking great! πŸ‘Œ
[error] Xcode is not installed
➜  voyager git:(main)

Platform(s)

Current Behavior

When using the SystemBars plugin (vanilla/no config except using --safe-area-inset-x in css) with the following config:

  plugins: {
    Keyboard: {
      resizeOnFullScreen: true,
    },
  }

A weird bug happens when:

  1. Using Android < Vanilla Ice Cream (new SystemBars plugin doesn't apply, so need to fall back to old behavior)
  2. Go to another app
  3. Open keyboard
  4. Switch back to capacitor app
  5. Observe there is a blank space for the keyboard

Expected Behavior

No blank space for the keyboard

Code Reproduction

https://github.com/aeharding/cap-blank-space-keyboard

Other Technical Details

Additional Context

aeharding/voyager#2198

Image

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