Problem description
Escape character '\n' does not work for textArea on Android if also the 'editable' property is set
Steps to reproduce
var win = Ti.UI.createWindow();
var defaultInfoText = '\n FOO \n \n BAR';
infoTextField = Ti.UI.createTextArea({
color: 'black',
backgroundColor: 'white',
// value: defaultInfoText,
value: 'FOO \n \n BAR',
editable: false,
font: { fontsize: 16 }
});
win.add(infoTextField);
win.open();
'\n' characters are ignored and FOO BAR is displayed in the same line
Commenting the 'editable:false' line works and FOO BAR is displayed as expected.
Not reproducible with 3.1.3.GA
PR:- https://github.com/appcelerator/titanium_mobile/pull/5211
This is a duplicate of TIMOB-15535.
Closing ticket as duplicate with reference to the above comments.