How to shrink the view with the keyboard?


#1

Hey guys, i’d like to know how to shrink the view when i click on a form with ionic ?

Here is what I have when i would like the image to be resized and not my view to keep its size and to add a scroll bar.

In other word how to prevent ionic to add a scroll bar and to shrink the view when opening the software keyboard ?

I’ve tried with cordova plugin keyboard but I didn’t achieved what I’m willing to do :frowning:

Thank you !


#2

I finally (and believe me or not after a lot time trying) did it:
I removed both ionic keyboard and the cordova keyboard and simply reinstalled it:

cordova plugin add https://github.com/cjpearson/cordova-plugin-keyboard

And I add this in the $ionicPlatform.ready function.

    Keyboard.shrinkView(true);

#3

Thanks! Your solution works!