{ "id": "62728", "key": "TIMOB-2096", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-07-20T14:08:44.000+0000", "created": "2011-04-15T03:10:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "hide", "ios", "ipad", "popover" ], "versions": [], "issuelinks": [ { "id": "19053", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T22:46:10.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}

This example from the Q/A shows the issue. If you call\npopover.hide() the popover will remain visible. This example is\ntying into the orientationchange event but it also fails in a click\nevent.

\n
\nvar masterWindow = Ti.UI.createWindow ({\n    backgroundColor:'#000'\n});\n \nvar navButton = Ti.UI.createButton({\n    title:'A Button'\n});\n \nvar detailWindow = Ti.UI.createWindow({\n    backgroundColor:'#fff',\n    top:0,\n    title:'Test',\n    leftNavButton:navButton\n});\n \nvar masterDetail = Ti.UI.iPhone.createNavigationGroup(\n{\n  window: detailWindow,\n    right:0,\n    top:0\n});\n \nmasterWindow.add(masterDetail);\n \nvar navPopover = Ti.UI.iPad.createPopover({\n    width:320,\n    height:850,\n    navBarHidden:true\n});\n\nnavButton.addEventListener('click', function(){\n  navPopover.show({view:navButton});\n});\n \nTi.Gesture.addEventListener('orientationchange',function(e)\n{\n\n    if(e.orientation == 3 || e.orientation == 4)\n    {\n        navPopover.hide();\n    }\n});\n \nmasterWindow.open();\n
{html}", "attachment": [], "flagged": false, "summary": "Popover hide doesn't work", "creator": { "name": "johnmcknight(atyahoo)", "key": "johnmcknight(atyahoo)", "displayName": "johnmcknight (at yahoo)", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "johnmcknight(atyahoo)", "key": "johnmcknight(atyahoo)", "displayName": "johnmcknight (at yahoo)", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127485", "author": { "name": "johnmcknight(atyahoo)", "key": "johnmcknight(atyahoo)", "displayName": "johnmcknight (at yahoo)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

The correct call to hide should have looked like this.

\n
\n      navPopover.hide({animated: true});\n
\n

But it doesn't seem to behave as expected in 1.4.1 and\n1.4.2.

{html}", "updateAuthor": { "name": "johnmcknight(atyahoo)", "key": "johnmcknight(atyahoo)", "displayName": "johnmcknight (at yahoo)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:22.000+0000", "updated": "2011-04-15T03:10:22.000+0000" }, { "id": "208804", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Does not reproduce with release 2.1.0.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-21T00:07:30.000+0000", "updated": "2012-07-21T00:07:30.000+0000" }, { "id": "410829", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T22:46:10.000+0000", "updated": "2017-03-09T22:46:10.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }