Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1918] Android: E-mail address in label gets cut at first dot

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-15T03:05:34.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsAndroid
Labelsandroid, feature, training
ReporterBill Dawson
AssigneeEric Merriman
Created2011-04-15T03:05:34.000+0000
Updated2017-06-05T21:39:02.000+0000

Description

This is happening because of automatic wordwrap which, in the absence of any spaces, is breaking on the first period: (app.js)

Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({  
    title:'Test',
    backgroundColor:'#fff',
    fullscreen: true,
    exitOnClose: true
});

var l = Ti.UI.createLabel({
    text: 'xxx.yyyyyyy@zzzzzzzzzzz.com',
    width: 100, height:40,top:0, left:0
});
win.add(l);
win.open();

Obviously this is not what a user would want to see.

Comments

  1. Bill Dawson 2011-04-15

    (from [d30a188b8f19533d6556dab2dcac18c800b4c932]) [#1918 state:fixed-in-qa] New wordWrap & ellipsize properties for Label, to enable developer to control if wrapping occurs (which it does by default) and whether to automatically show an ellipsis at the end of the view if text is too long to show in its entirety. http://github.com/appcelerator/titanium_mobile/commit/d30a188b8f19533d6556dab2dcac18c800b4c932"> http://github.com/appcelerator/titanium_mobile/commit/d30a188b8f195...

  2. Bill Dawson 2011-04-15

    Let's keep this open until we smooth out the final api details.

  3. Bill Dawson 2011-04-15

    (from [2373d789bc97fd4caa078f1ab8b203e146602b4d]) [#1918] Also added ellipsize to TextField/TextArea per customer request http://github.com/appcelerator/titanium_mobile/commit/2373d789bc97fd4caa078f1ab8b203e146602b4d"> http://github.com/appcelerator/titanium_mobile/commit/2373d789bc97f...

  4. Bill Dawson 2011-04-15

    (from [d2cfa0c73e527044e0ab0e6292aa210820a5cbc7]) [#1918] Also added ellipsize to TextField/TextArea per customer request http://github.com/appcelerator/titanium_mobile/commit/d2cfa0c73e527044e0ab0e6292aa210820a5cbc7"> http://github.com/appcelerator/titanium_mobile/commit/d2cfa0c73e527...

  5. Bill Dawson 2011-04-15

    (from [c5023655c6d3a11bffea1196b2b0d5fe36e619c6]) [#1918] Also added ellipsize to TextField/TextArea per customer request http://github.com/appcelerator/titanium_mobile/commit/c5023655c6d3a11bffea1196b2b0d5fe36e619c6"> http://github.com/appcelerator/titanium_mobile/commit/c5023655c6d3a...

  6. Lee Morris 2017-06-05

    Closing ticket as fixed.

JSON Source