{ "id": "91628", "key": "TIMOB-9064", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-10T18:07:35.000+0000", "created": "2012-05-08T17:15:05.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-10T18:07:35.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": "Tableview with search in popover in landscape mode gives different results in iOS 4.x and iOS 5.x\r\nh4. Repo Steps\r\n1. Run the code below in app.js\r\n2. Click the button.\r\n3. Pull down to reveal search.\r\n4. Focus on the search.\r\n5. Rotate to landscape.\r\n6. On iOS 5.x since the popover resized so you can search and on iOS 4.x it resizes back to original so you can never search.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\ncreateTableRow = function(args){\r\n // save the title for our own use\r\n var title = args.title;\r\n args.title = '';\r\n args.left = 42;\r\n args.height = 40;\r\n\r\n var row = Ti.UI.createTableViewRow(args);\r\n\r\n var label = Ti.UI.createLabel({\r\n backgroundColor: 'pink',\r\n text: title,\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n width: Ti.UI.FILL,\r\n height: args.height - 5,\r\n left: args.left,\r\n font: { fontSize: 17, fontWeight: 'bold'},\r\n });\r\n\r\n row.add(label);\r\n\r\n row.label_title = title;\r\n\r\n return row;\r\n};\r\n\r\nvar rows = [];\r\nrows.push( createTableRow({ title: 'table', leftImage: '/KS_nav_ui.png'}) );\r\nrows.push( createTableRow({ title: 'row', leftImage: '/KS_nav_ui.png'}) );\r\nrows.push( createTableRow({ title: 'rock' }) );\r\nrows.push( createTableRow({ title: 'car', leftImage: '/KS_nav_ui.png'}) );\r\nrows.push( createTableRow({ title: 'tab' }) );\r\nrows.push( createTableRow({ title: 'row boat', leftImage: '/KS_nav_ui.png'}) );\r\nrows.push( createTableRow({ title: 'table row', leftImage: '/KS_nav_ui.png'}) );\r\nrows.push( createTableRow({ title: 'test', leftImage: '/KS_nav_ui.png'}) );\r\nrows.push( createTableRow({ title: 'apple' }) );\r\n\r\nvar search = Ti.UI.createSearchBar({\r\n showCancel: false\r\n});\r\n\r\nvar table = Ti.UI.createTableView({\r\n data: rows,\r\n search: search,\r\n searchHidden: true,\r\n filterAttribute: 'label_title',\r\n filterCaseInsensitive: true\r\n});\r\n\r\nvar collectionPopoverView = Ti.UI.iPad.createPopover({\r\n barColor:'#ffffff',\r\n navBarHidden: true,\r\n width: 390,\r\n height: 420\r\n});\r\n\r\nvar buttonView = Ti.UI.createButton({\r\n title: 'test test',\r\n top: 20,\r\n left: 20\r\n});\r\n\r\nbuttonView.addEventListener('click', function(){\r\n collectionPopoverView.show({\r\n view: buttonView\r\n }); \r\n});\r\n\r\nwin.add(buttonView);\r\ncollectionPopoverView.add(table);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: tableview with search in popover in landscape mode gives different results in iOS 4.x and iOS 5.x", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 4.x\r\niOS 5.x\r\niPad2\r\nTi SDK 2.0.1.GA2", "comment": { "comments": [ { "id": "453654", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. \r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-10T18:07:35.000+0000", "updated": "2020-01-10T18:07:35.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }