{ "id": "90354", "key": "TIMOB-8754", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-04-02T11:22:22.000+0000", "created": "2012-04-17T10:18:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "look1" ], "versions": [], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T20:38: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": "h1. Problem\r\nReorienting a popover when a text field in it is focused results in the popover's layout distorting.\r\n\r\nh2. Evidence\r\nSee this bug in action in the 4 attached images, or in this YouTube video: http://www.youtube.com/watch?v=jVK8QjIlb8g\r\n\r\nh2. Reproduction\r\n1. Use the following app.js.\r\n2. Press \"Show Popover\"\r\n3. Reorient several times. The popover properly hides and shows, displaying its content as it was specified in the JS.\r\n4. Focus the search bar to bring up the keyboard. If you're in landscape, the popover will properly reduce its height to make room for the keyboard.\r\n5. Reorient. If you're now in portrait, the popover's height will increase to its old value, but the content won't change its height. Or, if you're not in landscape, the table view will take up the entire height, and the search bar won't be visible at all.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'Show Popover',\r\n height: 50, width: 300,\r\n top: 100\r\n});\r\nwin.add(button);\r\n\r\nbutton.addEventListener('click', function () {\r\n var popover = Ti.UI.iPad.createPopover({\r\n width: 200,\r\n height: 350,\r\n title: 'Table View',\r\n barColor: '#111'\r\n });\r\n\r\n popover.add(Ti.UI.createSearchBar({\r\n top: 0,\r\n height: 44\r\n }));\r\n popover.add(Ti.UI.createTableView({\r\n data: [\r\n { title: 'Option 1' },\r\n { title: 'Option 3' },\r\n { title: 'Option 2' }\r\n ],\r\n top: 44,\r\n bottom: 0\r\n }));\r\n\r\n popover.show({\r\n view: button,\r\n animated: true\r\n });\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "36927", "filename": "iOS Simulator Screen shot Apr 2, 2013 11.23.29 AM.png", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T11:23:16.000+0000", "size": 99736, "mimeType": "image/png" }, { "id": "27192", "filename": "step1.showPopover.jpg", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-17T10:27:19.000+0000", "size": 32794, "mimeType": "image/jpeg" }, { "id": "27193", "filename": "step2.focusText.jpg", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-17T10:27:19.000+0000", "size": 83150, "mimeType": "image/jpeg" }, { "id": "27194", "filename": "step3.reorient.jpg", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-17T10:27:19.000+0000", "size": 65177, "mimeType": "image/jpeg" }, { "id": "27195", "filename": "step4.reorientAgain.jpg", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-17T10:27:19.000+0000", "size": 79060, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: Popover reorientation with Keyboard breaks layout", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": "BROKEN on iPad 1 5.0.1\r\nBROKEN on iPad 2 5.1\r\nBROKEN on iPad 3 5.1\r\nBROKEN on iPad Simulator 5.1\r\n\r\nTitanium Mobile\r\nversion=2.0.1\r\ntimestamp=04/10/12 13:17\r\ngithash=0234887", "comment": { "comments": [ { "id": "245161", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPad Simulator: iOS SDK version: 5.1\r\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T11:22:22.000+0000", "updated": "2013-06-20T12:07:54.000+0000" }, { "id": "416536", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as this was last updated in 2013, please open a new ticket if this problem persists.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T20:38:40.000+0000", "updated": "2017-03-31T20:38:40.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }