[TIMOB-863] Android: KS zIndex Test. Labels aren't centering vertically
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | android, defect |
Reporter | Don Thorp |
Assignee | Marshall Culpepper |
Created | 2011-04-15T02:38:04.000+0000 |
Updated | 2011-04-17T01:54:29.000+0000 |
Description
In the zIndex test the descriptive labels are not given a height. During layout if no border attribute is supplied in a vertical dimension, but a height is given, the item should be centered in parent view, not placed from the top.
var l = Ti.UI.createLabel({
text:'scroll view: red on top, blue in the middle, pink below',
color:'#777',
width:300,
font:{fontSize:12}
});
Implies "auto" with vertical centering.
(from [fae3442e85164bc616e31441fa5de28fb18e41fa]) [#987 state:fixed-in-qa][#1472 state:fixed-in-qa][#1856 state:fixed-in-qa][#863 state:fixed-in-qa] scroll view support vertical layout. Fixed other layout issues with scrollview. Note: #863 the KS test seems to have been changed to include top. I removed top and the label display as expected. http://github.com/appcelerator/titanium_mobile/commit/fae3442e85164bc616e31441fa5de28fb18e41fa"> http://github.com/appcelerator/titanium_mobile/commit/fae3442e85164...
1.4.2.4ce7ff G1 running 1.6, 2.2 simulator