Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13981] Android: ellipsize (...) does not appear on Ti.UI.Label

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNot Our Bug
Resolution Date2013-06-26T07:39:36.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 13 API, 2013 Sprint 13
ComponentsAndroid
Labelsellipsis, label, parity
ReporterDavide Cassenti
AssigneeBiju pm
Created2013-05-24T14:40:43.000+0000
Updated2017-04-10T23:46:51.000+0000

Description

Problem description

The 'ellipsize' property for label is not working properly.

Steps to reproduce

Use the following code:
var win = Ti.UI.createWindow({
    backgroundColor: 'red'
});

var label = Ti.UI.createLabel({
	font: {
		fontSize: '32dp'
	},
	width: '250dp',
	height: '75dp',
	ellipsize: true,
	html: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
});
win.add(label);

win.open();
While I get ... in the end of second line on iOS, on Android the dots are not added.

Comments

  1. Carter Lathrop 2013-06-25

    Tested and confirmed on: 3.1.1GA Android GS3 4.1.1
  2. Biju pm 2013-06-26

    This is a known bug in the Android platform . it does not work even with wordWrap set to true ( the default value of wordWrap is true ) .
  3. Marian Kucharcik 2015-11-06

    Any news on this? I have this problem on Android 4.4.4 device with multiline text(single line works fine). Thanks
  4. Lee Morris 2017-04-10

    Closing ticket as this issue is expected Android behaviour.

JSON Source