{ "id": "62757", "key": "TIMOB-2125", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-08-22T14:15:59.000+0000", "created": "2011-04-15T03:11:10.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [ { "id": "20129", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:31:43.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": "{html}

The problem is the window size it apparently taken from the\nbackgroundImage size and therefore draws offscreen. I took a\n300x380 bitmap and it draws correctly. When I rotate to landscape\nyou see that's it's coordinates are off.

\n
\n10-19 13:57:31.255: DEBUG/LAYOUT(1068): (main) [1,15307] ti.modules.titanium.ui.widget.tableview.TiTableView {0,-61,480,331}\n
\n

Rotating it back to portrait

\n
\n10-19 13:57:31.485: DEBUG/LAYOUT(1068): (main) [1,15539] ti.modules.titanium.ui.widget.tableview.TiTableView {0,0,320,430}\n
\n
\nvar win = Ti.UI.createWindow({ \n    backgroundImage : 'images/background.png'\n});\n\nvar tableView = Ti.UI.createTableView({ backgroundColor : 'blue'  });\nwin.add(tableView);\n \nvar row = Ti.UI.createTableViewRow({\n    height: 40,\n    className: 'messageSelectionRow'           \n});\nvar image = Ti.UI.createImageView({ \n    left: 5, \n    top: 5, \n    width: 'auto',\n    height: 'auto',\n    image: 'media/appcelerator_small.png'\n});\nvar label = Ti.UI.createLabel({ \n    left: 30, \n    top: 5,\n    width: 'auto',\n    height: 'auto', \n    textAlign:'left', \n    color:'#FFFFFF', \n    text: 'title'\n});\nrow.add(image);\nrow.add(label);\ntableView.appendRow(row);\nwin.open({ animated : false});\n
{html}", "attachment": [], "flagged": false, "summary": "Android: Tableview Drawn Offscreen in Lightweight Window", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "215671", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, unable to reproduce the issue. Ticket marked as resolved. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-22T14:15:59.000+0000", "updated": "2012-08-22T14:15:59.000+0000" }, { "id": "414583", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:31:43.000+0000", "updated": "2017-03-21T22:31:43.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }