Skip to content

[Bug]: Collision with SystemBar plugin #68

Description

@luisbytes

Bug Report

Capacitor Version

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

Platform(s)

  • Android

Current Behavior

If insetsHandling is set to disable, the resizing of the webview when the keyboard is open will never be performed.

Expected Behavior

When this configuration is set to true, the keyboard plugin should be responsible for resizing the webview.

SystemBars: {
      insetsHandling: 'disable',
},
Keyboard: {
      resizeOnFullScreen: true,
},

Code Reproduction

https://github.com/luisbytes/safe-area

Other Technical Details

The current behavior is due to this pull request: #62

@theproducer

If the SystemBar class is present (it always will be, since it's included in @capacitor/android), the Keyboard plugin configuration is ignored. Therefore, setting insetsHandling to disable will prevent the WebView from being resized by either the Keyboard or SystemBar plugins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions