{ "id": "128777", "key": "TIMOB-16823", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-08-04T17:30:06.000+0000", "created": "2014-04-07T22:40:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "Case00001485", "supportTeam" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T20:35:08.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": "h6.Issue description\r\nOnce the Ti.UI.iOS.DocumentViewer is shown, is not able to hide or dismiss the OptionsMenu unless you select one of the options. Tapping outside the popover area does not hide it.\r\n\r\nh6.Steps to reproduce \r\n# Run sample code below\r\n# Tap Button to invoke DocumentViewer.show()\r\n# Attempt to dismiss OptionsMenu \r\n\r\n{code}\r\nvar file = 'doc.pdf';\r\n\r\nvar win = Ti.UI.createWindow();\r\nvar webview = Ti.UI.createWebView({\r\n\turl : 'http://www.appcelerator.com'\r\n});\r\nwin.add(webview);\r\n\r\nvar view = Ti.UI.createView({\r\n\theight : 40,\r\n\tborderColor : 'red',\r\n\twidth : Ti.UI.FILL\r\n});\r\n\r\nvar winButton = Ti.UI.createView({\r\n\theight : 40,\r\n\tbackgroundColor : 'red',\r\n\twidth : 200,\r\n\ttop : 270,\r\n\ttop : 0\r\n});\r\n\r\n//workaround\r\n//view.add(winButton);\r\n//win.add(view);\r\n//end of work around\r\n\r\nwin.add(winButton);//comment out when using work around\r\n\r\n// Create a document viewer to preview a PDF file\r\nvar docViewer = Ti.UI.iOS.createDocumentViewer({\r\n\turl : file\r\n});\r\n\r\n// The document viewer immediately launches without an animation\r\nwinButton.addEventListener('click', function() {\r\n\tdocViewer.show({\r\n\t\tview : winButton,\r\n\t\tanimated : true\r\n\t});\r\n\tTi.API.error('clicked');\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: DocumentViewer is not able to hide/dismiss OptionsMenu ", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS 7.1", "closedSprints": [ { "id": 154, "state": "closed", "name": "2014 Sprint 15 SDK", "startDate": "2014-07-21T21:56:31.515Z", "endDate": "2014-08-02T00:00:00.000Z", "completeDate": "2014-08-04T21:03:51.067Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "316874", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Looks this a issue with web view where web view consumes all the click events. If you set `touchEnabled` to `false` then this sample would work.\r\n{code}\r\nvar webview = Ti.UI.createWebView({\r\n url : 'http://www.appcelerator.com',\r\n touchEnabled: false\r\n});\r\n{code}\r\n\r\nMarking ticket as `won't fix` as this is a issue we constantly face the same problem with WebView. ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-04T17:29:05.000+0000", "updated": "2014-08-04T17:29:29.000+0000" }, { "id": "413934", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:35:08.000+0000", "updated": "2017-03-20T20:35:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }