Textarea blocked by keyboard - how to get around it?
I have a very simple form with two fields: Subject & Body.
When entering a "large" amount of text in the textarea the keyboard covers the textarea, so you can't see what you write.
How do I solve this? The textarea is just added to an ordinary window now, do I need to place it in a scrollview or something?
This is what I have:
var taBody = Titanium.UI.createTextArea({
height: '80%',
width: '99%',
top: 45,
color: '#000',
font:{
fontSize: 15
},
suppressReturn: false,
textAlign: 'left',
borderWidth: 2,
borderColor: '#bbb',
borderRadius: 5,
appearance:Titanium.UI.KEYBOARD_APPEARANCE_DEFAULT,
keyboardType:Titanium.UI.KEYBOARD_ASCII,
returnKeyType:Titanium.UI.RETURNKEY_DEFAULT
});
Thanks!
/J
2 Answers
-
Accepted Answer
You solved this yourself, just place the window contents in a scrollview, it will just jump up out of the way of the keyboard when you click in the textarea.
-
Excellent!
Thanks! =)
/J