Description
When using a label, the word wrap will not work unless the height and width are set
var win = Ti.UI.createWindow({backgroundColor: 'red'});
var lbl = Ti.UI.createLabel({
text: '*** Resources Dir: Test presence of file that exists => blahTest presence of file that does not exist => bleh*** appData Dir:Test presence of file that exists => meh Test presence of file that does not exist => merh',
color: 'black'
});
win.add(lbl);
win.open();
*Marking this as minor as it is a simple _workaround_*
Steps To Reproduce
1. Add the above code to an existing app.js file
2. Run on a device or emulator
3. Add the following to the label creation
width: Ti.UI.FILL, height: Ti.UI.FILL
4. Run on device or emulator
Actual Result
2. The text is not word wrapped
4. The text is word wrapped
Expected Result
The text should be word wrapped both times
Bumping to 4.1.1
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/317
Seems like in 4.1.0 beta (4.1.0.v20150626223333) a Label uses
Ti.UI.FILL
instead ofTi.UI.SIZE
as default.[~fokkezb] Yes, this has been fixed in latest SDK.
I saw that has been fixed in last night's build. The wordwrap has not however.
https://github.com/appcelerator/titanium_mobile_windows/pull/380
Verified the fix. The labels's are word wrapped. Closing. Environment: Appc Studio: 4.1.1.201507141126 Ti SDK: 4.2.0.v20150724170431 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0 APPC CLI: 4.1.2 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1