{ "id": "91478", "key": "TIMOB-9016", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13407", "description": "Sprint 2012-11 API", "name": "Sprint 2012-11 API", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-11T04:17:13.000+0000", "created": "2012-05-07T11:54:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_tableview", "qe-testadded", "regression" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-11T13:38:04.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": "h6.Issue\r\nTable view search disappearing row views. When using custom table rows with label don't behave well with search. \r\n\r\nh6.Expected behavior\r\nIt is working as expected in 1.8.2.\r\n\r\nh6.Tested on\r\niOS 5 simulator\r\n\r\nh6.Steps to reproduce - Grab & Throw sample below to an app.js\r\n1. Focus search bar\r\n2. Type 'row' \r\n3. Press backspace so search bar shows 'ro' \r\n4. the labels are not redrawn for the table rows. When you try to search over again noticed labels aren't correctly redrawn (as seen in the pertinent screen shoot).\r\n\r\nh6.Repro sequence\r\n{code}\r\nvar win = Ti.UI.createWindow();\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: false,\r\n filterAttribute: 'label_title',\r\n filterCaseInsensitive: true\r\n});\r\n\r\nwin.add(table);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "27560", "filename": "iOS_5_TableViewRows_SDK_1.8.2.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-07T11:54:11.000+0000", "size": 49675, "mimeType": "image/jpeg" }, { "id": "27561", "filename": "iOS_5_TableViewRows_SDK_2.0.1.GA2.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-07T11:54:11.000+0000", "size": 46184, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: tableView search causes row with label rendering issues", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Product: Mobile\r\nTitanium SDK: Mobile 2.0.1\r\nPlatform OS: iOS\r\nPlatform OS Version: 5.0", "comment": { "comments": [ { "id": "196349", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-29T13:47:03.000+0000", "updated": "2012-05-29T13:47:03.000+0000" }, { "id": "196596", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Side issue is fixed by PR https://github.com/appcelerator/titanium_mobile/pull/2288", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T15:18:29.000+0000", "updated": "2012-05-30T15:18:29.000+0000" }, { "id": "199029", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206172244\r\nTi Mobile SDK2.1.0.v20120618134156 hash r00905cd0\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nThe expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T18:19:10.000+0000", "updated": "2012-06-18T18:19:10.000+0000" }, { "id": "202625", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-11T04:16:40.000+0000", "updated": "2012-07-11T04:16:40.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }