{ "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.
\nvar win = Titanium.UI.createWindow({backgroundColor:\n'white'});
function makeView(){
\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}
\nvar view1 = makeView(),
\nview2 = makeView();
\n
\nwin.add(view1);
var openButton = Ti.UI.createButton({ bottom: 10, height: 40,\nwidth: 200, title:'open popover'});
\nopenButton.addEventListener('click', function(){
\nvar popover = Ti.UI.iPad.createPopover({height:200,width:280});\npopover.add(view2);\npopover.show({view: openButton});
\n
\n}) win.add(openButton);
win.open();
confirmed fixed on 1.4.1.aff269
\nvalid, needs testcase