Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2078] Textarea text not wrapping on Android with SDK 3.2GA with returnKeyType and/or autocapitalization

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2014-01-06T06:54:52.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, mobile, textarea
ReporterAlex Bernier
AssigneeRitu Agrawal
Created2013-12-31T21:53:04.000+0000
Updated2016-03-08T07:41:02.000+0000

Description

Description

Text in a textarea is not wrapping to next line when using returnKeyType and/or autocapitalization. This has worked on several 3.1 SDKs. Broke with 3.2GA.

Test Case

var win = Ti.UI.createWindow({
    backgroundColor : "#ddd"
});
 
win.open();
 
win.add(Ti.UI.createTextArea({
    top : 10,
    height : 60,
    width : Ti.UI.FILL,
    color : "#000",
    backgroundColor : "#fff",
    value : "With returnKeyType. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't.",
    returnKeyType : Titanium.UI.RETURNKEY_DONE
}));
 
win.add(Ti.UI.createTextArea({
    top : 80,
    height : 60,
    width : Ti.UI.FILL,
    color : "#000",
    backgroundColor : "#fff",
    value : "With autocapitalization. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't.",
    autocapitalization : Ti.UI.TEXT_AUTOCAPITALIZATION_SENTENCES
}));
 
win.add(Ti.UI.createTextArea({
    top : 150,
    height : 60,
    width : Ti.UI.FILL,
    color : "#000",
    backgroundColor : "#fff",
    value : "With both returnKeyType and autocapitalization. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't.",
    returnKeyType : Titanium.UI.RETURNKEY_DONE,
    autocapitalization : Ti.UI.TEXT_AUTOCAPITALIZATION_SENTENCES
}));
 
win.add(Ti.UI.createTextArea({
    top : 220,
    height : 60,
    width : Ti.UI.FILL,
    color : "#000",
    backgroundColor : "#fff",
    value : "No returnKeyType or autocapitalization. This text wraps properly. This text wraps properly. This text wraps properly. This text wraps properly. This text wraps properly."
}));
 
win.open();

Comments

  1. Alex Bernier 2014-01-06

    Any way to get this looked at? The options I'm using, returnKeyType and autocapitalization, are probably pretty common, and wrapping is key for textarea.
  2. Ritu Agrawal 2014-01-06

    This ticket is a duplicate of TIMOB-15535. Please follow along that ticket for further updates.

JSON Source