Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23499] Android: Ti.UI.Label.wordWrap should default to true, but is undefined

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-08-24T04:04:57.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.0
ComponentsAndroid
Labelsparity
ReporterChristopher Williams
AssigneeChee Kiat Ng
Created2016-06-10T19:51:03.000+0000
Updated2016-08-29T22:38:22.000+0000

Description

it('wordWrap', function () {
		var label = Ti.UI.createLabel({
			text: 'this is some text'
		});
		should(label.wordWrap).be.a.Boolean; // undefined on Android
		should(label.getWordWrap).be.a.Function;
		should(label.wordWrap).eql(true);
		should(label.getWordWrap()).eql(true);
		label.wordWrap = false;
		should(label.getWordWrap()).eql(false);
		should(label.wordWrap).eql(false);
	});

Comments

  1. Chee Kiat Ng 2016-08-24

    PR HERE: https://github.com/appcelerator/titanium_mobile/pull/8253
  2. Ashraf Abu 2016-08-24

    PR merged.
  3. Chee Kiat Ng 2016-08-25

    backport: https://github.com/appcelerator/titanium_mobile/pull/8262
  4. Ashraf Abu 2016-08-25

    6_0_X Backport merged
  5. Lokesh Choudhary 2016-08-29

    Verified the fix. label.wordWrap returns true as default when not set manually to true. Closing. Environment: Appc Studio : 4.8.0.201608221113 Ti SDK : 6.0.0.v20160829005859 Ti CLI : 5.0.9 Alloy : 1.9.1 MAC El Capitan : 10.11.6 Appc NPM : 4.2.7 Appc CLI : 6.0.0-31 Node: 4.4.4 Nexus 6 - Android 6.0.1

JSON Source