Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked August 17th 2010 by Joacim Boive
  • iphone
  • keyboard
  • mobile
  • textarea
0 Comments

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.

    — answered September 5th 2010 by Derrick Huth
    permalink
    0 Comments
  • Excellent!

    Thanks! =)

    /J

    — answered September 5th 2010 by Joacim Boive
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.