{ "id": "108066", "key": "TIMOB-12328", "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": null, "resolutiondate": null, "created": "2013-01-17T16:58:01.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "24657", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "104474", "key": "TIMOB-11676", "fields": { "summary": "iOS: KitchenSink - the search bar failed to return the screen's width after orientation was changed", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "24658", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "61298", "key": "TIMOB-666", "fields": { "summary": "iOS: SectionIndexTitle in TableView overlaps the SearchBar", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:25.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. Problem description\r\nWhen setting 'width' property for the search bar on top of a TableView, the search bar is then being wrongly displayed.\r\n\r\nh3. Steps to reproduce\r\nCreate a Search Bar and set the width property value. \r\nResult: Search Bar is not longer correctly displayed (see screenshot).\r\nSetting 'width' value should not have effect on Search Bar size.\r\n\r\nNote that setting also the right property, in this case the Search Bar is also always displayed below the right Index (see TIMOB-666)\r\n\r\nSearch Bar resize issues also reported in TIMOB-11676\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n title:'Test win',\r\n backgroundColor:'white',\r\n // modal:true // setting to true and displaying the Tile Bar, the Search Bar is correctly displayed\r\n});\r\n // create table view data object\r\n var data = [\r\n {title:'Alan (click to change index)', hasChild:true, header:'A'},\r\n {title:'Alice', hasDetail:true},\r\n {title:'Alexander'},\r\n {title:'Amos'},\r\n {title:'Alonzo'},\r\n {title:'Brad', header:'B'},\r\n {title:'Brent'},\r\n {title:'Billy'},\r\n {title:'Brenda'},\r\n {title:'Callie', header:'C'},\r\n {title:'Cassie'},\r\n {title:'Chris'},\r\n {title:'Cameron'},\r\n {title:'Don', header:'D'},\r\n {title:'Dilbert'},\r\n {title:'Deacon'},\r\n {title:'Devin'},\r\n {title:'Darin'},\r\n {title:'Darcy'},\r\n ];\r\n \r\n var search = Titanium.UI.createSearchBar({\r\n \twidth:200,\r\n \t// right:0\r\n });\r\n \r\n // create table view\r\n var tableview = Titanium.UI.createTableView({\r\n data:data,\r\n search:search\r\n });\r\n \r\n // create table view event listener\r\n tableview.addEventListener('click', function(e)\r\n {\r\n if (e.index === 0){\r\n tableview.index = index2;\r\n }\r\n // event data\r\n var index = e.index;\r\n var section = e.section;\r\n var row = e.row;\r\n var rowdata = e.rowData;\r\n Titanium.UI.createAlertDialog({title:'Table View',message:'row ' + row + ' index ' + index + ' section ' + section + ' row data ' + rowdata}).show();\r\n });\r\n // set filters\r\n var index = [\r\n {title:'A',index:0},\r\n {title:'B',index:5},\r\n {title:'C',index:9},\r\n {title:'D',index:13},\r\n {title:'E',index:19},\r\n {title:'F',index:23},\r\n {title:'G',index:27},\r\n {title:'H',index:30},\r\n {title:'I',index:33},\r\n {title:'J',index:36},\r\n {title:'K',index:41},\r\n {title:'L',index:44},\r\n {title:'M',index:48},\r\n {title:'N',index:52},\r\n {title:'O',index:55},\r\n {title:'P',index:(data.length -1)}\r\n ];\r\n tableview.index = index;\r\n // add table view to the window\r\n win.add(tableview);\r\n \r\nwin.open();\r\n{code}", "attachment": [ { "id": "34825", "filename": "Screen Shot 2013-01-17 at 4.57.59 PM.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-17T16:58:01.000+0000", "size": 49254, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: search bar layout issues when setting 'width' property", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK all versions", "comment": { "comments": [ { "id": "243658", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\niOS iPhone Simulator: iOS SDK version: 6.0\n\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-22T09:55:34.000+0000", "updated": "2013-03-22T09:55:34.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }