Socket
Socket
Sign inDemoInstall

capacitor-adjust-resize

Package Overview
Dependencies
2
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    capacitor-adjust-resize

Auto adjust the native android layout when the keyboard opens. Needed when using translucent status and navigation bars.


Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

npm version capacitor support

capacitor-adjust-resize

This plugin attaches an observer for layout changes on the native layer.

Example: When the keyboard opens, this plugin automatically adds bottom padding to the android layout, so the webview ends on top of the soft keyboard.

Why: On using <item name="android:windowTranslucentNavigation">true</item>, the keyboard overlays the webview and does not shrink the webview automatically.

Supported platforms

PlatformSupported
Android
iOS
Web

Install

npm i capacitor-adjust-resize
npx cap sync android

The plugin is activated on load automatically.

API

Keywords

FAQs

Last updated on 06 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc