[TIMOB-4123] iOS: Label height set to auto should return "auto" for Android parity.
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-05-03T16:17:05.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Release 2.1.0 |
Components | iOS |
Labels | core, module_label, qe-testadded |
Reporter | Eric Merriman |
Assignee | Neeraj Gupta |
Created | 2011-05-17T14:05:02.000+0000 |
Updated | 2013-11-07T05:29:12.000+0000 |
Description
Description:
Setting label.height to 'auto' then reading the height value returns "2". This bug was originally in the Android component as TIMOB-3202 and was fixed (set to return 'auto'). For parity, iOS should follow suit.
steps to reproduce:
1) Create sample app and replace app.js with:
var win = Titanium.UI.createWindow({
backgroundColor:'white'
});
win.open();
var label = Ti.UI.createLabel();
label.height = 'auto';
alert('Label height is: '+label.height);
2) launch the app
Result:
The alert reports "2"
Expected:
The alert reports "auto" (for android parity)
Attachments
Will this be fixed anytime soon?
We plan to take care of this parity issue in the next release (1.9).
Fixed as a result of the composite layout. Tested 2.1.0.848d711.
Verified fixed with SDK 2.1.0.v20120614124151 on iPhone 4 (5.0.1)
Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4787