{ "id": "128817", "key": "ALOY-983", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-05T18:57:45.000+0000", "created": "2014-04-08T20:27:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-testadded" ], "versions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" } ], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-06-22T13:21:05.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "ENVIRONMENT:\r\nAlloy from master (commit 2267d1d002d7f7bd1f9b61557c11c8d24f259a45/Tue Mar 25 17:31:19 2014 -0400)\r\nTitanium SDK 3.3.0.v20140328110920\r\nAppcelerator Studio, build: 3.3.0.201403281814\r\nMac OS X 10.8.5\r\nXcode 5.0.2/iOS 7.0.3/iPad Retina simulator\r\n\r\nREPRODUCTION:\r\nCreate a new Alloy project and run the code below with the iPad simulator.\r\n\r\n\r\nRESULTS:\r\nWhen using the Popover's contentView (ContentView XML element), height and width properties together, the height and width are not respected with Alloy projects. If you do not set the contentView property, the height and width are honored.\r\n\r\n\r\nAlloy Example\r\n{code}\r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n\t \r\n\t \r\n\t \r\n\t\r\n \r\n\r\n\r\n// app/controllers/index.js\r\nfunction openPopover() {\r\n var popover = Alloy.createController('popover').getView();\r\n popover.show({view:$.button});\r\n};\r\n\r\n$.index.open();\r\n{code}\r\n\r\n\r\nTitanium Classic Example -- works as expected\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar button = Ti.UI.createButton({title: 'Show Popover'});\r\n\r\nvar popView = Ti.UI.createView({\r\n\tbackgroundColor: 'green'\r\n});\r\nvar label = Ti.UI.createLabel({text: 'Titanium Popover!'});\r\npopView.add(label);\r\n\r\nvar popover = Ti.UI.iPad.createPopover({\r\n\twidth: 250,\r\n\theight: 100,\r\n\tcontentView: popView\r\n});\r\n\r\nbutton.addEventListener('click', function(e){\r\n\tpopover.show({view: button});\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "47187", "filename": "AlloyPopoverExample.png", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-08T20:28:00.000+0000", "size": 54840, "mimeType": "image/png" }, { "id": "47188", "filename": "TitaniumPopoverExample.png", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-08T20:28:00.000+0000", "size": 51881, "mimeType": "image/png" } ], "flagged": false, "summary": "Popover height and width are ignored when using ContentView element", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 50, "state": "closed", "name": "2014 Sprint 09 Tooling", "startDate": "2014-04-28T15:43:24.381Z", "endDate": "2014-05-10T03:44:00.000Z", "completeDate": "2014-05-12T13:36:16.254Z", "originBoardId": 113 } ], "comment": { "comments": [ { "id": "303324", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR: https://github.com/appcelerator/alloy/pull/383\r\n\r\nFunctional test:\r\n\r\nRun the app included in the PR (https://github.com/skypanther/alloy/tree/ALOY-983/test/apps/testing/ALOY-983) on the iPad simulator or device. There are three buttons. Click on each. They open a popover that uses the ContentView tag containing a View, Window, and NavigationWindow. The height/width of the parent ( tag) is applied to if one is not set directly on ContentView. The NavigationWindow popover is taller because of an explicit height.\r\n\r\nAlso, run the ui/popover test app included in the main Alloy repo on an iPad sim/device. It has two buttons: one creates a popover without a ContentView, the other with a ContentView. You should get a Warn message with the non-ContentView example that such a technique is deprecated. ", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-02T18:24:49.000+0000", "updated": "2014-05-02T18:24:49.000+0000" }, { "id": "303524", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-05T18:57:45.000+0000", "updated": "2014-05-05T18:57:45.000+0000" }, { "id": "304288", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. The functional test instructions pass.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.2.3.201404181520\r\nTi SDK : 3.3.0.v20140508223312\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-dev\r\nCLI - 3.3.0-dev\r\nIpad simulator", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-10T00:14:42.000+0000", "updated": "2014-05-10T00:14:42.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }