Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18188] MobileWeb: Ellipsize not adding ellipsis to text

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-04-10T07:10:01.000+0000
Affected Version/sRelease 3.4.0, Release 3.4.1
Fix Version/sRelease 4.1.0
ComponentsMobileWeb
Labelsn/a
ReporterJamie Buckley
AssigneeChris Barber
Created2014-12-11T13:49:46.000+0000
Updated2015-06-09T17:43:35.000+0000

Description

Problem Description

When using ellipsize on a label in mobileweb the text is truncated but the ellipsis is not added.

Test Case

Run attached app.js or paste following code into app.js:
var win1 = Titanium.UI.createWindow({  
    backgroundColor:'#fff'
});

win1.add(Ti.UI.createLabel({
	top: 200,
	width: "40%",
	text: "Collaboratively administrate empowered markets via plug-and-play networks. Dynamically procrastinate B2C users after installed base benefits. Dramatically visualize customer directed convergence without revolutionary ROI.",
	ellipsize: true,
	wordWrap: false
}));

win1.open();

Expected results

Text is truncated and ellipsis added to label.

Actual results

Text is truncated no ellipsis added

Attachments

FileDateSize
app.js2014-12-11T13:49:46.000+0000413

Comments

  1. Chris Barber 2015-04-03

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/6763 4_0_X pull request: https://github.com/appcelerator/titanium_mobile/pull/6764
  2. Feon Sua Xin Miao 2015-04-10

    PR merged.
  3. Lokesh Choudhary 2015-06-09

    Verified the fix. Works as expected. Environment: Appc Studio : 4.1.0.201505071004 Ti SDK : 4.1.0.v20150605164428, 4.0.1.v20150529150210 Ti CLI : 4.0.1 Alloy : 1.6.0 MAC Yosemite : 10.10.3 Appc npm : 4.0.0 Appc CLI : 4.0.2-rc2 Node: v0.10.37 Device - Android 5.0.1

JSON Source