Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16167] Android: Escape character ' ' does not work for textArea if 'editable' property is set

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2014-01-21T23:29:43.000+0000
Affected Version/sRelease 3.2.0, Release 3.2.1
Fix Version/sn/a
ComponentsAndroid
Labelsqe-3.2.1
ReporterFederico Casali
AssigneeBiju pm
Created2014-01-10T22:54:20.000+0000
Updated2017-03-21T23:01:24.000+0000

Description

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

Comments

  1. Biju pm 2014-01-13

    PR:- https://github.com/appcelerator/titanium_mobile/pull/5211
  2. Ping Wang 2014-01-21

    This is a duplicate of TIMOB-15535.
  3. Lee Morris 2017-03-21

    Closing ticket as duplicate with reference to the above comments.

JSON Source