{ "id": "116761", "key": "TIMOB-14466", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-14T20:14:06.000+0000", "created": "2013-07-02T18:18:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-14T20:14:06.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": "ENVIRONMENT:\r\nMac OS X 10.7.5\r\nTiSDK 3.1.1.GA\r\nAppcelerator Studio, build: 3.1.1.201306131423\r\nXcode Version 4.6.2 (4H1003)\r\niOS 6.1\r\n\r\nREPRODUCTION:\r\nRun the following code below in the iPad simulator.\r\nMay need to add a doc in the Resources folder to preview and modify line 53 to point to the document.\r\n\r\nClick the right nav button or the button in the toolbar at the bottom. Options menu pops up as expected and is anchored to the button.\r\n\r\nClick the button in the window. The options menu does not appear, but the menu event is triggered.\r\n\r\nClick on the label, button bar or orange view. The options menu appears and anchored to the view component, but the view component moves to the top-left corner.\r\n\r\nEXPECTED RESULTS:\r\nWhen clicking these items, the options menu should appear anchored to the view component and should not move the view component from its set position.\r\n\r\nMORE INFO:\r\nOn the iPhone simulator, the options menu appears as a dialog, but still moves the label, buttonbar and view. Does not appear for the button in the window. Works fine for the toolbar and right nav button.\r\n\r\n\r\n{code}\r\nvar win2 = Ti.UI.createWindow();\r\nvar navGroup = Ti.UI.iPhone.createNavigationGroup({window: win2});\r\nvar navButton = Titanium.UI.createButton({title:'Launch'});\r\nwin2.RightNavButton = navButton;\r\nvar winButton = Titanium.UI.createButton({\r\n title:'Launch',\r\n height:40,\r\n width:200,\r\n top:270\r\n});\r\nwinButton.addEventListener('click', function(){docViewer.show({view:winButton, animated: true});});\r\nwin2.add(winButton);\r\n\r\n\r\nvar buttonbar = Titanium.UI.createButtonBar({\r\n labels:['One', 'Two', 'Three'],\r\n backgroundColor:'#336699',\r\n top:50,\r\n style:Titanium.UI.iPhone.SystemButtonStyle.BAR,\r\n height:25,\r\n width:200\r\n});\r\nbuttonbar.addEventListener('click', function(){\r\n\tdocViewer.show({view:buttonbar, animated: true});\r\n});\r\nwin2.add(buttonbar);\r\n\r\nvar send = Titanium.UI.createButton({\r\n title: 'Send',\r\n style: Titanium.UI.iPhone.SystemButtonStyle.DONE,\r\n});\r\nsend.addEventListener('click', function(){\r\n\tdocViewer.show({view:send, animated: true});\r\n});\r\nvar toolbar = Titanium.UI.iOS.createToolbar({\r\n items:[send],\r\n bottom:0\r\n}); \r\n//win2.titleControl = toolbar;\r\nwin2.add(toolbar)\r\n\r\nvar view = Ti.UI.createView({\r\n height:40,\r\n width:200,\r\n top:200,\r\n backgroundColor: 'orange'\r\n})\r\nview.addEventListener('click', function(){\r\n\tdocViewer.show({view:view, animated: true});\r\n});\r\nwin2.add(view);\r\n\r\ndocViewer = Ti.UI.iOS.createDocumentViewer({url:'Example.pdf'});\r\nnavButton.addEventListener('click', function(){\r\n\tdocViewer.show({view:navButton, animated: true});\r\n});\r\n\r\nvar label = Ti.UI.createLabel({text: 'The options menu sucks.', color: 'white'});\r\nlabel.addEventListener('click', function(){\r\n\tdocViewer.show({view:label, animated: true});\r\n});\r\nwin2.add(label);\r\n\r\n\r\n\r\ndocViewer.addEventListener('unload', function(e){Ti.API.info(JSON.stringify(e));});\r\ndocViewer.addEventListener('load', function(e){Ti.API.info(JSON.stringify(e));});\r\ndocViewer.addEventListener('menu', function(e){Ti.API.info(JSON.stringify(e))});\r\n\r\nvar win1 = Titanium.UI.createWindow();\r\nwin1.add(navGroup);\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "DocumentViewer: Cannot set show method's view param to a Ti.UI.View (non-ButtonBarItem)", "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, "comment": { "comments": [ { "id": "421999", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-14T20:14:06.000+0000", "updated": "2017-06-14T20:14:06.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }