Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Keyboard.setResizeMode none for android #416

Open
1 of 4 tasks
piotrblasiak opened this issue Jan 22, 2020 · 8 comments
Open
1 of 4 tasks

feat: Keyboard.setResizeMode none for android #416

piotrblasiak opened this issue Jan 22, 2020 · 8 comments
Labels
platform: android plugin: keyboard type: feature request A new feature, enhancement, or improvement

Comments

@piotrblasiak
Copy link

Feature Request

Describe the Feature Request

Is this supposed to work/be implemented or just not possible in android? Or is there a workaround? I need the keyboard to cover the webview like it does in iOS.

Platform Support Requested

  • Android
  • iOS
  • Electron
  • Web
@jcesarmobile
Copy link
Member

At the moment, if you don't want to resize the webview, you can add android:windowSoftInputMode="adjustPan" to your activity in the AndroidManifest.xml

I've been looking into it and seems possible from code to, so should be implemented

@piotrblasiak
Copy link
Author

At the moment, if you don't want to resize the webview, you can add android:windowSoftInputMode="adjustPan" to your activity in the AndroidManifest.xml

I've been looking into it and seems possible from code to, so should be implemented

Is this confirmed? I tried it and it does not seem to make any difference - the webview is still resized.

@jcesarmobile
Copy link
Member

I tested with this code
Capacitor.Plugins.Keyboard.addListener("keyboardDidShow", () => console.log('keyboardDidShow', window.innerWidth, window.innerHeight)); and the height didn't change after adding that line, so I think it works, but you can share your testing too

@piotrblasiak
Copy link
Author

piotrblasiak commented Mar 8, 2020

Ok, the fault was that I put it on <application> instead of <activity>. Sorry for the late reply and thanks!

@jcesarmobile
Copy link
Member

Reopening as seem possible with code too, so should be implemented

@jcesarmobile jcesarmobile reopened this Mar 8, 2020
@shayanaijaz
Copy link

Is there a solution for this yet? I can do android:windowSoftInputMode="adjustPan" but then I am not able to scroll on the page which is a functionality I need

@MarcosBeGo
Copy link

Is there a solution for this yet? I can do android:windowSoftInputMode="adjustPan" but then I am not able to scroll on the page which is a functionality I need

+1

@roxteddy
Copy link

roxteddy commented Feb 9, 2021

Hi

According this (https://stackoverflow.com/questions/46751925/how-to-set-windowsoftinputmode-programmatically-from-fragments), it is indeed possible to change it programmatically.

However, to be fully useful, it would be great if the webview could be moved on top on the keyboard -so the upper part is outside the top border of the viewport- and we could scroll the whole webview, not only the ion-content part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: android plugin: keyboard type: feature request A new feature, enhancement, or improvement
Projects
None yet
Development

No branches or pull requests

6 participants