[TIMOB-23499] Android: Ti.UI.Label.wordWrap should default to true, but is undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-08-24T04:04:57.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.0.0 |
Components | Android |
Labels | parity |
Reporter | Christopher Williams |
Assignee | Chee Kiat Ng |
Created | 2016-06-10T19:51:03.000+0000 |
Updated | 2016-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);
});
PR HERE: https://github.com/appcelerator/titanium_mobile/pull/8253
PR merged.
backport: https://github.com/appcelerator/titanium_mobile/pull/8262
6_0_X Backport merged
Verified the fix.
label.wordWrap
returnstrue
as default when not set manually totrue
. 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