Highlight Focused Field Cordova

My question

I am currently writing an iOS app using Cordoba. I have a page with a form on it like this:

Form example

When a user clicks on a field, a keyboard appears, as expected, on iOS. However, to prevent my application from moving from the screen, I turned on the following setting:

// Prevent the keyboard from pushing up the webview
cordova.plugins.Keyboard.disableScroll(true);

Unfortunately, this interferes with a few things that cause me problems:

  • When the field is focused, the screen does not scroll to this field, so sometimes this field appears behind the keyboard.
  • Even if I had the solution above, for the elements at the bottom of the screen, I won’t be able to scroll down far enough to bring them into the field of view above the keyboard.

My question (s)

Solution 1

, , , ?

, , ?

, JavaScript/jQuery keyboard_height, position() scrollTop(). ​​ ...

2

, , , ( ):

// Enable the auto scroll when the keyboard is shown
cordova.plugins.Keyboard.disableScroll(false);

( " " ) , , ?

+4

All Articles