ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
192 stars 177 forks source link

Be able to set KeyboardResize programatically #88

Closed jpike88 closed 5 years ago

jcesarmobile commented 5 years ago

https://github.com/ionic-team/cordova-plugin-ionic-keyboard#keyboardsetresizemode-for-ios-only

jpike88 commented 5 years ago

No, I'm talking about this, please reopen:

This can only be set in config.xml, should be available to tweak programatically.

<preference name="KeyboardResize" value="true" />

jcesarmobile commented 5 years ago

If KeyboardResize is set to false on init, that set the resize mode to none, if set to true then it can be one of the other 3 resize modes. With the function to change the mode programmatically you can set the resize mode to any of the 4 resize modes, ionic, body, native or none, so setting to ionic, body or native are like setting KeyboardResize to true and none to false.

jpike88 commented 5 years ago

Having KeyboardResize and KeyboardResizeMode as options in config.xml is confusing, they seem to affect the same option. You should get rid of KeyboardResize, and just have one option.