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();