{ "id": "142217", "key": "AC-920", "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": "2015-01-06T01:19:29.000+0000", "created": "2015-01-05T10:03:27.000+0000", "labels": [ "ios", "popover" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:13.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": "Setting Popover height and width is deprecated. We should set them on the contentView. This changes the contentView size, but not the popover itself.\r\n\r\nSimple test case:\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nvar win = Titanium.UI.createWindow({ title : 'Win', backgroundColor : '#fff' });\r\n \r\nvar button = Ti.UI.createButton({ title : 'Open Popover!' });\r\n \r\nbutton.addEventListener('click', function(e) {\r\n popover.show({ view : button });\r\n});\r\n \r\nwin.add(button);\r\n \r\nvar contentWindow = Ti.UI.createWindow({ backgroundColor : 'green', title : 'Kermit' });\r\n \r\nvar popover = Ti.UI.iPad.createPopover({\r\n contentView : Ti.UI.iOS.createNavigationWindow({\r\n width : 250,\r\n height : 200,\r\n window : contentWindow\r\n })\r\n});\r\n \r\nvar label = Ti.UI.createLabel({ text : \"It's not easy being green.\" });\r\n \r\ncontentWindow.add(label);\r\n \r\nlabel.addEventListener('click', function(e) {\r\n popover.getContentView().setHeight(100);\r\n});\r\n \r\nwin.open();\r\n{code}\r\n\r\nIs there a way to resize the popover itself?\r\nAs a workaround I can set the width and height on the popover and ignore the deprecation warnings. Hopefully there will be a way to make this happen correctly in 3.5.0.", "attachment": [], "flagged": false, "summary": "Setting popover height via contentView doesn't resize the popover", "creator": { "name": "bojan.milenkoski", "key": "bojan.milenkoski", "displayName": "Bojan Milenkoski", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "bojan.milenkoski", "key": "bojan.milenkoski", "displayName": "Bojan Milenkoski", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Application type: mobile\r\nTitanium SDK: 3.5.0.RC\r\nDevice: iOS simulator (all)\r\nHost Operating System: OSX 10.9.5\r\nTitanium Studio: 3.4.0.201409261227", "comment": { "comments": [ { "id": "337939", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Duplicate to TIMOB-18278\r\n", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-06T01:18:06.000+0000", "updated": "2015-01-06T01:19:21.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }