{ "id": "61552", "key": "TIMOB-920", "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": [ { "id": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:54:40.000+0000", "created": "2011-04-15T02:39:13.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:54:40.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}

see:
\nhttp://helpdesk.appcelerator.net/tickets/2335

\n

if the popover is visible and i chance the height, it will not\nbe reflected until the popover is hidden then shown again.

\n

here's a test case:

\n
\n\nvar win = Ti.UI.createWindow();\n\nvar b0 = Ti.UI.createButton({\n    top:10,\n    width:300,\n    height:40,\n    title:'Open Popover'\n})\n\nvar b1 = Titanium.UI.createButton({ \n    width:129, \n    height:29, \n    top:12, \n    left:63, \n    title:'button 1'\n});\n\nvar b2 = Titanium.UI.createButton({ \n    width:105, \n    height:29, \n    top:12, \n    left:192, \n    title:'button 2'\n});\n\nvar b3 = Titanium.UI.createButton({ \n    width:114, \n    height:29, \n    top:12, \n    left:297, \n    title:'button 3'\n}); \n\nvar popover = Ti.UI.iPad.createPopover({ \n    title:'Popover',\n    width:480, \n    height:156,\n    arrowDirection:Ti.UI.iPad.POPOVER_ARROW_DIRECTION_UP,\n    backgroundColor: '#fdf5e5'\n}); \npopover.add(b1);\npopover.add(b2);\npopover.add(b3);\n\nwin.add(b0)\n\nb0.addEventListener('click', function()\n{                   \n    popover.show({view:b0, rect:{x:230,y:350}});    \n});\n\nb1.addEventListener('click', function()\n{\n    popover.setHeight(156);\n});\n\nb2.addEventListener('click', function()\n{   \n    popover.setHeight(320);\n});\n\nb3.addEventListener('click', function()\n{   \n    popover.setHeight(320);\n});\nwin.open();\n
{html}", "attachment": [], "flagged": false, "summary": "setHeight not working properly for popovers", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124343", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [915d08194ca7425867de0528003feca678d6d231])\nCloses #920 . Setwidth and setHeight applies to the\npopup content size, including the navbar, not the TiWindow size\nwithin. Not only that, but UIPopoverController does some strange\ninteractions with UIViewController, so that we must specifically\nset the view even though we shouldn't need to. \nhttp://github.com/appcelerator/titanium_mobile/commit/915d08194ca74...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:39:14.000+0000", "updated": "2011-04-15T02:39:14.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }