Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5637] MobileWeb: Label ignores more than one space in a row

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-07-19T00:29:49.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelslook1
ReporterMisha Vasko
AssigneeMaxim Negadaylov
Created2011-07-18T23:14:25.000+0000
Updated2017-03-20T17:06:33.000+0000

Description

Label ignores more than one space in a row. Browser will not correctly render this label:
var win = Ti.UI.currentWindow;
var l1 = Ti.UI.createLabel({
     text: '          Text after a lot of spaces',
     backgroundColor: 'red'});
win.add(l1);

Comments

  1. Brenton House 2014-08-05

    Not sure if this should be reopened or a new defect created but this doesn't work... For MobileWeb, we should probably be converting multiple spaces to nbsp; (non-breaking spaces)
  2. Lee Morris 2017-03-20

    Closing ticket as fixed.

JSON Source