Open Scobee opened 5 years ago
Wondering if there is any fix for this?
+1
Still an issue, need a fix for ionic 1 project.
Try adding the below to your config.xml file
<widget xmlns:android="http://schemas.android.com/apk/res/android">
<platform name="android">
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application/activity">
<activity android:windowSoftInputMode="adjustPan" />
</edit-config>
</platform>
</widget>
sorry, but didn't work
I found a temporary hack/fix using javascript.
When the keyboard opens
if (document.querySelectorAll('ion-view.pane ion-content')[0] && platform == 'android') { document.querySelectorAll('ion-view.pane ion-content')[0].style.cssText = "height: calc(100vh - " + e.keyboardHeight + "pt);" document.activeElement.scrollIntoView();//if active input isn't focussed in view }
When the keyboard hides
if (document.querySelectorAll('ion-view.pane ion-content')[0] && platform == 'android') { document.querySelectorAll('ion-view.pane ion-content')[0].style.cssText = "height: 100%);" }
@mark261092 your fix is ok, but I dont really want to use hacks like this. I would like this to work just by using the config
@Scobee , yes, me too. this was a last resort measure that will be removed if something promising comes up.
Anybody have a fix for this? I am also using a hack similar to @mark261092 but would like to find a cleaner solution.
Can you provide a sample app? Is not clear to me if this is a bug on the keyboard plugin or on Ionic itself.
+1
+1
Hello,
I am using this plugin on an Ionic 3 / Angular 5 project. I have:
And also
My code looks like this:
The problem is that no padding is added when the keyboard is open, although scrollPadding is set to true