[TIMOB-9212] MobileWeb: Label - wordWrap is not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-06-05T14:23:16.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-12 MW |
Components | MobileWeb |
Labels | regression |
Reporter | Jon Alter |
Assignee | Bryan Hughes |
Created | 2012-05-23T14:21:56.000+0000 |
Updated | 2012-06-26T16:59:16.000+0000 |
Description
WordWrap was working in 2.0.1.GA2 but is not working in TiSDK 2.1.0.v20120522144410
Steps to reproduce:
Step 1: run the code below Step 2: notice that the text is not wrapping
var win = Ti.UI.createWindow({
backgroundColor: 'green'
});
win.open();
var label = Ti.UI.createLabel({
text: "One Two Three Four Five",
width: 100,
height: 50,
font: {fontSize: 16},
wordWrap: true,
backgroundColor: 'red'
});
win.add(label);
There are a couple other related issues including labels not wrapping properly in AlertDialogs (TIMOB-9327) and the last line of really long labels getting cut off: http://developer.appcelerator.com/question/137694/mobileweb-tiuilabel-truncating-some-words-if-text-too-long
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2328