nitin
nitin

Reputation: 3787

Phonegap App : Page layout breaks after input from keyboard

When user enters login details and next page loads,layout becomes as in below pic.

enter image description here

Whole app layout breaks and view comes down by the size of onscreen keyboard. This stays there unless u change the orientation or do tapping couple of times.

This happens only on login page because there is full screen image in background. Below is the preference in my config.xml file

 <preference name="android-windowSoftInputMode" value="stateHidden|adjustResize"/>

Upvotes: 0

Views: 289

Answers (1)

Durga Sriram
Durga Sriram

Reputation: 496

Use window.scrollTo(0.0); on the login click method .

Upvotes: 1

Related Questions