Keypad Covers screen area (titanium)
In my application
In many pages when i m going to type in textfield at that time keypad covers most of the area of the screen
2 Answers
-
If you use a ScrollView or a ScrollableView, your view should slide up when the keyboard is displayed. You might need to manually slide it back down when the keyboard is closed .. you can add an event listener on the text field's blur event to adjust the positioning of the view.
-
Wrapping the view in a scrollview does help but there's a bug where it will only scroll down once per each textfield that you set focus to. You will need to manually scroll down on focus and back up on blur every time to make it work consistently:
textbox.addEventListener("focus", function() { scrollView.scrollTo(0, 100); }); textbox.addEventListener("blur", function() { scrollView.scrollTo(0, 0); });