{ "id": "90540", "key": "TIMOB-8789", "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": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13401", "description": "Sprint 2012-09 Core", "name": "Sprint 2012-09 Core", "archived": true, "released": true, "releaseDate": "2012-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-10T03:15:20.000+0000", "created": "2012-04-18T17:43:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "module_views", "qe-testadded", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-10T13:53: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Scenario description\r\n\r\nDefine a label inside a view and add the view to a tableView as headerView property.\r\nAfter scrolling the tableView, the label might move outside of the view, resulting being invisible or truncated. \r\n\r\nh2. Sample code and step to reproduce\r\n\r\n- Run the code below.\r\n- Scroll up and down the tableView.\r\nResult: the label in the headerView might move outside of the view, resulting in being invisible or truncated.\r\nThis behavior does not seems to be always reproducible, it might take two or three scrolling attempts.\r\nAlso, I've not been able to reproduce the issue if commenting out all properties from the label (except 'text' of course).\r\n\r\nNot reproducible on 1.7.6 TiSDK\r\n\r\n{code}\r\nvar\twin = Titanium.UI.createWindow({\r\n\t\t// barColor : '#929292',\r\n\t\t// title : 'something',\r\n\t\t// backgroundColor : '#E7E7E7'\r\n\t});\r\n\t\t\t\t\r\nvar labelPlan = Titanium.UI.createLabel({\r\n\t\ttop : 20,\r\n\t\t// height : 56,\r\n\t\t// left : '5%',\r\n\t\t// left:20,\r\n\t\t// right:10,\r\n\t\t// right:'3%',\r\n\t\t// width : '93.75%',\r\n\t\t// color : '#363636',\r\n\t\t// font : {\r\n\t\t\t// fontSize : 15,\r\n\t\t\t// fontWeight : 'bold',\r\n\t\t\t// fontFamily : 'Helvetica Neue'\r\n\t\t// },\r\n\t\ttext : 'testing'\r\n});\r\n\r\n\r\nvar subView = Titanium.UI.createView({\r\n\t\t\tlayout : 'vertical',\r\n\t\t\ttop : 0,\r\n\t\t\tleft : 0,\r\n\t\t\theight:56,\r\n\t\t\t// height:Ti.UI.SIZE,\r\n\t\t\tbackgroundColor : 'red'\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\tsubView.add(labelPlan)\r\n\t\tvar dataSource=[]\r\n\t\tfor(var i=0;i<100;i++){\r\n\t\t\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight : 80,\r\n\t\t//touchEnabled:false\r\n\t});\r\n\t\r\nvar\ttf1 = Titanium.UI.createTextField({\r\n\t\t\tcolor : '#336699',\r\n\t\t\theight : 80,\r\n\t\t\ttop : 10,\r\n\t\t\tleft : 10,\r\n\t\t\twidth : 250,\r\n\t\t\thintText : 'hint' + i\r\n\t\t});\r\n\trow.add(tf1);\r\n\tdataSource.push(row)\r\n\t\t}\r\n\t\t\r\nvar menuTableView = Titanium.UI.createTableView({\r\n\t\t\tseparatorColor:'#e7e7e7',\r\n\t\t\tdata : dataSource,\r\n\t\t\tbackgroundColor :'#e7e7e7',\r\n\t\t\theaderView:subView\r\n\t\t});\r\n\r\n// menuTableView.headerView=subView;\r\nwin.add(menuTableView);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: headerView label displaying issues after scrolling the tableView", "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 2.0\r\nAndroid OS", "comment": { "comments": [ { "id": "192615", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a layout issue. One possible workaround is to remove 'layout: vertical' from subView.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-25T11:55:40.000+0000", "updated": "2012-04-25T11:55:40.000+0000" }, { "id": "193304", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR 2094", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-01T10:57:24.000+0000", "updated": "2012-05-01T10:57:24.000+0000" }, { "id": "194476", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.2.v20120505151714 with droid 2.2.3", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-10T17:41:49.000+0000", "updated": "2012-05-10T17:41:49.000+0000" }, { "id": "202312", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T03:14:35.000+0000", "updated": "2012-07-10T03:14:35.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }