{
"id": "160459",
"key": "TIMOB-23456",
"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": "2016-05-24T09:57:40.000+0000",
"priority": {
"name": "High",
"id": "2"
},
"labels": [],
"versions": [],
"issuelinks": [],
"assignee": null,
"updated": "2018-02-28T19:55:50.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": "10202",
"name": "Android",
"description": "Android Platform"
}
],
"description": "All of the values in TableViewRow height and width are always 0.\r\n\r\nTest case:\r\n\r\n{code:java}\r\n\r\n\r\n \r\n \r\n\r\n{code}\r\n\r\n\r\n{code:java}\r\n$.table.addEventListener('postlayout', function (e){\r\n Ti.API.info(\"# Row height: \" + $.row.rect.height);\r\n});\r\n{code}\r\n\r\n\r\nLog result:\r\n\r\n# Row height: 0\r\n\r\n",
"attachment": [],
"flagged": false,
"summary": "Using \"rect\" TableViewRow height and width values are always 0",
"creator": {
"name": "amurcia",
"key": "amurcia",
"displayName": "Anna",
"active": true,
"timeZone": "America/Los_Angeles"
},
"subtasks": [],
"reporter": {
"name": "amurcia",
"key": "amurcia",
"displayName": "Anna",
"active": true,
"timeZone": "America/Los_Angeles"
},
"environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.4\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 4294967296\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\nTitanium SDK\r\n SDK Version = 5.4.0.v20160425220956\r\n SDK Path = /Users/amurcia/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160425220956\r\n Target Platform = android",
"comment": {
"comments": [
{
"id": "386612",
"author": {
"name": "nsalahin",
"key": "nsalahin",
"displayName": "Nazmus Salahin",
"active": true,
"timeZone": "Asia/Dhaka"
},
"body": "Hello,\r\nI am able to reproduce this issue. For the given code I get the following log.\r\n{code}\r\n[INFO] : # Row height: 0\r\n[INFO] : # Row height: 0\r\n[INFO] : # Row height: 0\r\n{code}\r\n*index.xml:*\r\n{code}\r\n\r\n\t\r\n\t\t\r\n \t\t\t \r\n \t\t\t\r\n \t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n*index.tss:*\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor:\"white\"\r\n}\r\n\r\n\"Label\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\"\r\n}\r\n{code}\r\n*index.js:*\r\n{code}\r\n$.table.addEventListener('postlayout', function (e){\r\n\r\n Ti.API.info(\"# Row height: \" + $.row.rect.height);\r\n\r\n});\r\n\r\n$.index.open();\r\n{code}\r\n\r\n*Environment*:\r\n\r\n*Device info:* Nexus7 (android 6.0.1)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.4.0.v20160509133737\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0",
"updateAuthor": {
"name": "nsalahin",
"key": "nsalahin",
"displayName": "Nazmus Salahin",
"active": true,
"timeZone": "Asia/Dhaka"
},
"created": "2016-05-24T10:45:31.000+0000",
"updated": "2016-05-24T10:45:31.000+0000"
},
{
"id": "386625",
"author": {
"name": "sdarda",
"key": "sdarda",
"displayName": "Sharif AbuDarda",
"active": false,
"timeZone": "Asia/Dhaka"
},
"body": "Hello, \r\n\r\nI can reproduce the issue when there is no height is defined in the TableViewRow. But when a height is defined in TableViewRow, I can get the height in \"postlayout\" as \r\n\r\n Ti.API.info(\"# Row height: \" + $.row.height);\r\n\r\nRegards,\r\nSharif.\r\n\r\n\r\n\r\n",
"updateAuthor": {
"name": "sdarda",
"key": "sdarda",
"displayName": "Sharif AbuDarda",
"active": false,
"timeZone": "Asia/Dhaka"
},
"created": "2016-05-24T15:03:24.000+0000",
"updated": "2016-05-24T15:03:24.000+0000"
}
],
"maxResults": 2,
"total": 2,
"startAt": 0
}
}
}