{ "id": "62442", "key": "TIMOB-1810", "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": "12089", "description": "", "name": "Sprint 2011-49", "archived": true, "released": true, "releaseDate": "2011-12-12" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-08T15:27:41.000+0000", "created": "2011-04-15T03:02:58.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "branch-5062" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-12-08T23:27:18.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}

To Reproduce:
\r\nCreate a single button bar and add two buttons to it.
\r\nCreate event listeners to open popovers for each.
\r\nClick button 1
\r\nClick button 2

\r\n

Result: Both popovers are open at once, the the most recent\r\noverlapping.
\r\nExpected: All other popovers should close before opening another\r\n(either close on first click, open new on second, or close/open in\r\none press).

\r\n

EXTRA CREDIT:
\r\nIf buttons are on separate button bars, popovers behave as\r\nexpected. First click closes existing popover, second opens new\r\none.

{html}", "attachment": [ { "id": "24486", "filename": "Screenshot 2011.12.06 15.09.08.png", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T15:18:04.000+0000", "size": 49985, "mimeType": "image/png" }, { "id": "24487", "filename": "Screenshot 2011.12.06 15.13.01.png", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T15:18:04.000+0000", "size": 41180, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: IPad Multiple Popovers", "creator": { "name": "kevinmcgrath", "key": "kevinmcgrath", "displayName": "Kevin McGrath", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "126738", "author": { "name": "kevinmcgrath", "key": "kevinmcgrath", "displayName": "Kevin McGrath", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Some further information.

\n

It seems that if the popover is attached to a button on a bar\nthat the above behavior can occur. However, wrapping the button in\na view on that same bar (while keeping the event tied to the\nbutton) provides the click-on/click-off behavior.

{html}", "updateAuthor": { "name": "kevinmcgrath", "key": "kevinmcgrath", "displayName": "Kevin McGrath", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:59.000+0000", "updated": "2011-04-15T03:02:59.000+0000" }, { "id": "126739", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Possibly still valid. Requires test/R&D.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:03:00.000+0000", "updated": "2011-04-15T03:03:00.000+0000" }, { "id": "170935", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Definitely still a problem. Just tested with CI from the 28th, and I can reproduce with the following code:\r\n\r\nh2. Reproduction\r\nDrop the following in an app.js. Follow the numbered steps.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n leftNavButton: Ti.UI.createButton({\r\n title: '1. Touch Me'\r\n }),\r\n rightNavButton: Ti.UI.createButton({\r\n title: '2. Touch Me'\r\n })\r\n});\r\n\r\nvar leftPopover = Ti.UI.iPad.createPopover({\r\n width: 300, height: 45 * 3\r\n});\r\nwin.leftNavButton.addEventListener('click', function() {\r\n leftPopover.show({ view: win.leftNavButton });\r\n});\r\n\r\nvar rightPopover = Ti.UI.iPad.createPopover({\r\n width: 300, height: 45 * 3\r\n});\r\nwin.rightNavButton.addEventListener('click', function() {\r\n rightPopover.show({ view: win.rightNavButton });\r\n});\r\n\r\nvar tab = Ti.UI.createTab({\r\n window: win\r\n});\r\nvar tabGroup = Ti.UI.createTabGroup();\r\ntabGroup.addTab(tab);\r\ntabGroup.open();\r\n{code}\r\n\r\nh2. Tested With\r\nversion=1.8.0\r\ntimestamp=10/28/11 15:46\r\ngithash=79c174b...", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-10-31T13:05:28.000+0000", "updated": "2011-10-31T13:20:20.000+0000" }, { "id": "175074", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "With SDK 1.8.0.1.v20111205164258 this appears to be fixed, but if you open one popover as you rotate the device, it's possible to get two popovers. You can also get one of the two popovers in this case to appear away from the button. Also, the popover when rotating may appear on the opposite button from the one pressed to invoke it. See attached screenshots. Occurred on both 4.3.5 and 5.0 iPad 2.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T15:16:39.000+0000", "updated": "2011-12-06T15:16:39.000+0000" }, { "id": "175436", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request pending, #884", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-08T12:10:51.000+0000", "updated": "2011-12-08T12:10:51.000+0000" }, { "id": "175506", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on Ti Studio 1.0.7.201112080131\r\n
Ti Mob SDK 1.8.0.1.v20111208162314\r\n
OSX Lion\r\niPad 2 OS 4.3.5\r\n\r\nExpected behavior is shown where there is only a single popover visible at one time\r\n\r\n", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-08T17:35:47.000+0000", "updated": "2011-12-08T17:35:47.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }