[TIMOB-1918] Android: E-mail address in label gets cut at first dot
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-15T03:05:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | Android |
Labels | android, feature, training |
Reporter | Bill Dawson |
Assignee | Eric Merriman |
Created | 2011-04-15T03:05:34.000+0000 |
Updated | 2017-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.
(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...
Let's keep this open until we smooth out the final api details.
(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...
(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...
(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...
Closing ticket as fixed.