{ "id": "142313", "key": "TIMOB-18317", "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": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-01-06T18:23:08.000+0000", "created": "2015-01-06T13:41:02.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "3.5.0", "arrow", "dialog", "popover" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-06T19:45:22.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": "The (screenshots of the) next example taken from the docs shows that since 3.5.0.RC dialog arrows like those of a PopOver start from the centre of the (now required) view passed to the {{show()}} method, while before it pointed to the relevant side of the view.\r\n\r\nThe old behaviour should be restored or made configurable and documented.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'Open Popover!',\r\n backgroundColor: 'red'\r\n});\r\nbutton.addEventListener('click', function(e) {\r\n popover.show({\r\n view: button\r\n });\r\n});\r\nwin.add(button);\r\n\r\nvar rightButton = Ti.UI.createButton({\r\n title: 'Robin'\r\n});\r\nrightButton.addEventListener('click', function(e) {\r\n alert(\"But green's the color of spring.\");\r\n});\r\n\r\nvar contentWindow = Ti.UI.createWindow({\r\n backgroundColor: 'green',\r\n rightNavButton: rightButton,\r\n title: 'Kermit',\r\n width: 250,\r\n height: 100\r\n});\r\ncontentWindow.add(Ti.UI.createLabel({\r\n text: \"It's not easy being green.\"\r\n}));\r\n\r\nvar popover = Ti.UI.iPad.createPopover({\r\n width: 250,\r\n height: 100,\r\n contentView: Ti.UI.iOS.createNavigationWindow({\r\n window: contentWindow\r\n })\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "53412", "filename": "iOS Simulator Screen Shot 06 Jan 2015 14.37.08.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-01-06T13:41:02.000+0000", "size": 69806, "mimeType": "image/png" }, { "id": "53413", "filename": "iOS Simulator Screen Shot 06 Jan 2015 14.38.25.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-01-06T13:41:02.000+0000", "size": 69821, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Dialog arrow starts in center instead of at edge of view", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "3.5.0.RC\r\n3.4.1.GA", "closedSprints": [ { "id": 291, "state": "closed", "name": "2015 Sprint 01 SDK", "startDate": "2015-01-03T01:00:00.000Z", "endDate": "2015-01-17T01:00:00.000Z", "completeDate": "2015-01-19T17:24:40.828Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "338003", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6540\r\n3_5_X - https://github.com/appcelerator/titanium_mobile/pull/6541", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-06T18:13:58.000+0000", "updated": "2015-01-06T18:18:24.000+0000" }, { "id": "338019", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on: \r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.5.0.v20150106102524\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nXcode 6.1.1\r\niPad Mini 3 (8.1), iPad 3 (8.0.2)\r\n\r\nThe dialog arrow now starts at the edge of the view as expected. Closing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-01-06T19:45:13.000+0000", "updated": "2015-01-06T19:45:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }