{ "id": "61944", "key": "TIMOB-1312", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:49.000+0000", "created": "2011-04-15T02:49:08.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "3.2", "defect", "ios", "ipad", "layout", "os", "vertical" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:49.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

A customer reported that setting a view's layout to vertical is\nbroken when the view is used in a popover. The following code shows\nthe behavior. I tested this with 3.2 & 4 with latest from\nHEAD.

\n

var win = Titanium.UI.createWindow({backgroundColor:\n'white'});

\n

function makeView(){

\n
\nvar container = Ti.UI.createView({height: 200, width:280, layout: 'vertical', backgroundColor: 'green'}),\nagreeBtn = Ti.UI.createView({\n    width: 280,\n    height: 45,\n    top: 10,\n    backgroundColor: 'red'\n}),\nusefulBtn = Ti.UI.createView({\n    width: 280,\n    height: 45,\n    top: 10,\n    backgroundColor: 'blue'\n}),\nfunnyBtn = Ti.UI.createView({\n    width: 280,\n    height: 45,\n    top: 10,\n    backgroundColor: 'purple'\n});\ncontainer.add(agreeBtn);\ncontainer.add(usefulBtn);\ncontainer.add(funnyBtn);\nreturn container\n
\n

}

\n

var view1 = makeView(),

\n
\nview2 = makeView();\n
\n

win.add(view1);

\n

var openButton = Ti.UI.createButton({ bottom: 10, height: 40,\nwidth: 200, title:'open popover'});
\nopenButton.addEventListener('click', function(){

\n
\nvar popover = Ti.UI.iPad.createPopover({height:200,width:280});\npopover.add(view2);\npopover.show({view: openButton});\n
\n

}) win.add(openButton);

\n

win.open();

{html}", "attachment": [], "flagged": false, "summary": "Vertical layout is broken in popovers", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125314", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

confirmed fixed on 1.4.1.aff269

\n

valid, needs testcase

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:49:09.000+0000", "updated": "2011-04-15T02:49:09.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }