Closed sawaca96 closed 2 years ago
can you provide a sample app where the issue can be reproduced?
I am experiencing the same thing. My versions @capacitor/cli: 3.3.4 @capacitor/android: 3.3.4 @capacitor/core: 3.3.4 @capacitor/ios: 3.3.4
Can you provide the sample app?
Not sure if this helps. Otherwise I will have to create a sample repo when I have time. On IOS when focusing on an input, it works as expected, but on android, it just covers up the content like using adjustNothing.
Im using Vuejs3 if that matters
It doesn't, I need a sample app I can run
@jcesarmobile Here is a sample repo: https://github.com/Concentricc/capacitor-pan
On a pixel 3 emulator on my local, the input gets covered by the keyboard when it comes into focus.
Hopes this helps
Thanks for the app.
I've been able to reproduce, but with the same app content, the behavior is the same if I put it in a Cordova app and even in a native app that just contains a WebView (with no Cordova or Capacitor involvement), so it looks like a bug on the WebView itself, not in Capacitor.
If in the native app I put some native edit text fields it scrolls properly to them, but doesn't work with web input fields.
If I remove the windowSoftInputMode
or set it to adjustResize
then it focus properly, but resizing the content a bit. If you don't want that behavior you'll have to use the keyboard plugin for listening for the show/hide events and scroll to the inputs yourself.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Capacitor Version
Platform(s)
android
Current Behavior
windowSoftInputMode:adjustPan
not working in androidExpected Behavior
I think that setting up adjustPan would work like ios, but it actually works like adjustNothing.
Code Reproduction
I add adjustPan setting to
AndroidManifest.xml
Other Technical Details
npm --version
output: 8.0.0node --version
output: v12.8.2pod --version
output (iOS issues only):Additional Context