{ "id": "136880", "key": "AC-1667", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-09-24T02:14:29.000+0000", "created": "2014-09-19T13:54:27.000+0000", "labels": [ "TCSupportTriage", "ios", "ipad" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:38:09.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When using a navigationWindow in a popover, the size specified on the popover is not honored (the first time the popover is displayed) AND the 2nd time (and after that) the popover is displayed with the correct size but the contents of the popover is missing.\r\n\r\ncode to reproduce:\r\n{code:title=Bar.javascript|borderStyle=solid}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#fff'\r\n});\r\n\r\nvar popoverWin = Ti.UI.createWindow({\r\n title: 'Popover Win',\r\n backgroundColor:'#ccc',\r\n\t// width: '100%',\r\n\t// height: '100%',\r\n\t// width: Ti.UI.SIZE,\r\n\t// height: Ti.UI.SIZE,\r\n\twidth: 250,\r\n\theight: 300,\r\n});\r\n\r\n\r\nvar tableData = [ {title: 'Row 1'}, {title: 'Row 2'}, {title: 'Row 3'}, {title: 'Row 4'}, {title: 'Row 5'} ];\r\n\r\nvar theTableView = Ti.UI.createTableView({\r\n\tdata: tableData,\r\n});\r\npopoverWin.add(theTableView);\r\n\r\n\r\nvar test1Btn = Ti.UI.createButton({\r\n\ttitle: 'Open popover',\r\n\ttop: 50,\r\n\twidth: 200\r\n});\r\nwin.add(test1Btn);\r\n\r\ntest1Btn.addEventListener('click', function(e) {\r\n\tthePopover.show({ view:test1Btn });\r\n});\r\n\r\n\r\nvar test2Btn = Ti.UI.createButton({\r\n\ttitle: 'Don\\'t dismiss popover',\r\n\tbottom: 50,\r\n\twidth: 200\r\n});\r\nwin.add(test2Btn);\r\n\r\n//!!TODO, if the contentView is a navigationWindow the second time you open the popover all content is missing\r\nvar navWindow = Ti.UI.iOS.createNavigationWindow({window: popoverWin});\r\n\r\nvar thePopover = Ti.UI.iPad.createPopover({\r\n\twidth: 250,\r\n\theight: 220,\r\n\t// contentView: popoverWin,//!!TODO, with this line uncommented, the tableview don't disappear\r\n\tcontentView: navWindow,//!!TODO, with this line uncommented, the second time you open the popover the table view is missing\r\n\tpassthroughViews: [test2Btn]//!!TODO, comment this line to test, the size of the popover, when uncommented the popover size is not correct\r\n});\r\n\r\n/**\r\n\tXXX\r\n\t\tsummary:\r\n\r\n\t\t\t* if using the property passthroughViews, the size of the popover is not the expected one on the first time the popover is shown/opened\r\n\r\n\t\t\t* if using a navigationWindow in a popover the content will disappear the second time the popover is shown/opened\r\n\r\n\t\t\t==> workaround, recreate the popover (within a function) each time the popover should be displayed\r\n\tXXX\r\n**/\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "51445", "filename": "iOS Simulator Screen shot 19 sep 2014 15.39.05.png", "author": { "name": "woodoo", "key": "woodoo", "displayName": "Michael Woode", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-19T13:54:27.000+0000", "size": 57732, "mimeType": "image/png" } ], "flagged": false, "summary": "popover: wrong size when using navigationWindow and missing content (2nd time popover is shown)", "creator": { "name": "woodoo", "key": "woodoo", "displayName": "Michael Woode", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "woodoo", "key": "woodoo", "displayName": "Michael Woode", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium sdk 3.3.0\r\nTitanium Studio build 3.3.0.201407100905\r\nMac OS X 10.9.4", "comment": { "comments": [ { "id": "325335", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-24T02:14:29.000+0000", "updated": "2014-09-24T02:14:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }