[TIMOB-9004] Android: Label widget cuts off long strings when width property is set
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-05-21T12:08:14.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | n/a |
Components | Android |
Labels | core |
Reporter | Neeraj Gupta |
Assignee | Allen Yeung |
Created | 2012-05-05T13:11:34.000+0000 |
Updated | 2017-03-30T21:25:37.000+0000 |
Description
Label widget cuts off long strings when width property is set. Here is the sample code the customer provided:
Problem Scenario
----------------
Ti.UI.createLabel({
left: 11,
top: 10,
bottom: 10,
color: "#2e0333",
font: {
fontSize: 14
},
width: 280,
touchEnabled: false,
height: Ti.UI.SIZE,
text:'Very long string...'
}
)
Workaround Scenario (set width to .SIZE and add a right property)
-------------------
Ti.UI.createLabel({
left: 11,
top: 10,
bottom: 10,
color: "#2e0333",
font: {
fontSize: 14
},
width: Ti.UI.SIZE,
right: 11
touchEnabled: false,
height: Ti.UI.SIZE,
text:'Very long string...'
}
)
Try it out on both iOS and Android platforms before marking this bug resolved.
I tried the fail case and the workaround in iOS/Android. I get the same behavior for both of them. The text as not cut off in either case.
Closing ticket as I am unable to reproduce the issue using the following environment; Pixel (7.1) MacOS 10.11.6 (15G31) Studio 4.8.1.201612050850 Ti SDK 6.0.3 GA Appc NPM 4.2.8 Appc CLI 6.1.0 Ti CLI 5.0.11 Alloy 1.9.5 Arrow 1.10.1 Xcode 8.2 (8C38) Node v4.6.0 Java 1.7.0_80