{ "id": "63529", "key": "TIMOB-2897", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11239", "name": "Release 1.6.0 M06", "archived": true, "released": true, "releaseDate": "2011-01-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:23.000+0000", "created": "2011-04-15T03:32:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "enterprise", "release-1.6.0", "reported-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T02:00:23.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

If you run this failcase app.js, you will see that the button\nexpands its height to be as tall as the neighboring label (height\n90), even though the button has a specified height of 40. This is\nobviously wrong.

\n
\n/*global Ti, Titanium, alert, JSON, require, setTimeout, setInterval */\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({  \n    title:'Test',\n    backgroundColor:'#000',\n    exitOnClose: true\n});\n\nvar fieldContainer = Ti.UI.createView({\n    height:280, width:320, top: 10,\n    layout:'horizontal',\n    backgroundColor:'red'\n});\n \nvar field = Titanium.UI.createLabel({\n    width:256, height:90, top:0, left:0,\n    text: 'test label 256x90',\n    backgroundColor: 'blue'\n});\n \n \nvar button = Ti.UI.createButton({\n    height:40,width:40, top:10, left: 5,\n    title: 'x'\n});\n \nfieldContainer.add(field);\nfieldContainer.add(button);\n \nwin.add(fieldContainer);\n\nwin.add( \n    Ti.UI.createLabel({\n        bottom: 10, \n        text: \"The fail case was that the button on the right above (button 'x') would expand its height to be as tall as the neighboring blue label, instead of having a height of 40 px as specified in the code.  So if the button looks 'normal' and not stretched vertically to be the height of the blue label, then the test has passed.\"\n}));\n\nwin.open();\n
{html}", "attachment": [], "flagged": false, "summary": "Android: children in horizontal layout expand to fill parent height even if height specified", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "129653", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [b1b596447eefe9eda06d4b40348546ae0f64255b])\n[#2897 state:fixed-in-qa] Fix child heights in\nhorizontal layouts \nhttps://github.com/appcelerator/titanium_mobile/commit/b1b596447eef...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:32:23.000+0000", "updated": "2011-04-15T03:32:23.000+0000" }, { "id": "129654", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [16f5a38255d2e3f3f533126c42cc31ddb3b38465])\n[#2897 state:fixed-in-qa] Properly calculalte\nposition of 'wrapped line' in horizontal layout \nhttps://github.com/appcelerator/titanium_mobile/commit/16f5a38255d2...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:32:23.000+0000", "updated": "2011-04-15T03:32:23.000+0000" }, { "id": "129655", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Verified on G1/1.6 and Nexus One/2.2.1 using build #e1cb22a

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:32:23.000+0000", "updated": "2011-04-15T03:32:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }