ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: windowSoftInputMode to adjustPane - Maybe a bug?

Open GeorgePapado opened this issue 11 years ago • 3 comments

Type: bug

Platform: android 4.1 webview

Hello. I am implementing an app using the ionic cli for building the app.
I try yesterday to change the ‘windowSoftInputMode’ for Android to ‘adjustPane’ without success. I change the preference in the config.xml and upload the app. I try to do this with both preference options for fullscreen (true/false).

What is here there right option? From the documentation it must be set to true. In many stack-over-flows answers it should work with false.

I have also try ‘ionic add platform android’ to see what for a AndroidManifest.xml file is generated. The generated file is not affected by my preference.

Is there a bug maybe? Or what I did wrong? I see if I change for example the orientation via preference there is also a change in the generated Manifest file.

I use the latest version of ionic and cordova.

GeorgePapado avatar May 18 '15 06:05 GeorgePapado

preferences

GeorgePapado avatar May 18 '15 06:05 GeorgePapado

@tlancina, can you take a look?

perrygovier avatar May 18 '15 18:05 perrygovier

I don't believe there is a "android-windowSoftInputMode" preference for Cordova: https://cordova.apache.org/docs/en/5.0.0/guide_platforms_android_config.md.html#Android%20Configuration (there is one for PhoneGap, which is probably where the confusion is). If you want to use adjustPan, you'll have to edit the generated AndroidManifest.xml in your Android project folder, making sure to set your fullscreen preference to false. You might also have to call ionic.keyboard.disable() to prevent the Ionic keyboard code from scrolling things into view for you.

Closing this as it's not really an issue with the framework. If you're still having troubles, the Ionic forum is a great place to get help.

tlancina avatar Jun 08 '15 16:06 tlancina