Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap 3.3 iOS KeyboardShrinksView

In PhoneGap/Cordova 3.3 (and 3.2) the preference KeyboardShrinksView for iOS is gone and has been replaced with enableViewPortScale.

Can anyone explain to me how to achieve the same result I would get with KeyboardShrinksView but by using enableViewPortScale and the viewport Metatag?

When in iOS, if the user opens the keyboard I need the entire view to shrink.

like image 780
Red2678 Avatar asked Feb 12 '14 20:02

Red2678


1 Answers

Here is what I ended up doing:

<meta name="viewport" content="initial-scale=1, minimum-scale=1, 
maximum-scale=1, user-scalable=0, height=device-height"/>

Thanks to @daniel-miller, the answer above came from him here:

Keyboard hides iOS input fields in PhoneGap Build 3.1 with an iFrame/object and JQTouch

Other Help: https://groups.google.com/forum/#!topic/phonegap/87K3lYr6f40

like image 135
Red2678 Avatar answered Sep 28 '22 12:09

Red2678