Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-863] Android: KS zIndex Test. Labels aren't centering vertically

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:29.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect
ReporterDon Thorp
AssigneeMarshall Culpepper
Created2011-04-15T02:38:04.000+0000
Updated2011-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.

Comments

  1. Don Thorp 2011-04-15

    (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...

  2. Thomas Huelbert 2011-04-15

    1.4.2.4ce7ff G1 running 1.6, 2.2 simulator

JSON Source