{ "id": "61386", "key": "TIMOB-754", "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-01-19T06:30:50.000+0000", "created": "2011-04-15T02:35:44.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-09T10:56: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

I got the following code:

\n

var imageView = Ti.UI.createImageView({

\n
\nimage : imageFile,\nleft : 7,\ntop : 6,\nheight : (window_height / 3) - 10,\n
\n

}); headerView.add(imageView);

\n

Ti.API.info(\"imageView.size.width: \" +\nimageView.size.width);

\n

The debug statement returns always 7. Actually the debug returns\nevery value I change \"left\" in the create-Statement to. The Image\ngets displayed correctly but this is a bug.

{html}", "attachment": [], "flagged": false, "summary": "Bug in ImageView.size.width", "creator": { "name": "karl", "key": "karl", "displayName": "karl", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "karl", "key": "karl", "displayName": "karl", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123957", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Fixed under iOS, but original tags do not indicate which\nplatform was targeted. Assigning to Don/TBS for triage.

\n

Note that it may not have ever even been valid under android...\nbut we have to check.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:35:44.000+0000", "updated": "2011-04-15T02:35:44.000+0000" }, { "id": "179858", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Cannot reproduce (Titanium 1.9.0 (2012/01/16 11:16 366b32d, Android 2.2, emulator), so assume this has been resolved in the meantime.\r\n\r\nUsing the following code, the value returns correctly. Refer to TIMOB-5303 and TIMOB-7266 for information about why setTimeout is necessary.\r\n\r\n{code:lang=javascript|title=app.js}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n\texitOnClose: true\r\n});\r\n\r\nvar imageView = Ti.UI.createImageView({\r\n\timage:'/images/myimage1.jpg',\r\n\tleft: 7,\r\n\ttop: 6,\r\n\theight: (Ti.Platform.displayCaps.platformHeight / 3) - 10\r\n});\r\n\r\nwin.add(imageView);\r\n\r\nwin.open();\r\nsetTimeout(function(){\r\n\tTi.API.info(\"imageView.size.width: \" + imageView.size.width);\r\n}, 3000);\r\n{code}", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-19T06:29:06.000+0000", "updated": "2012-01-19T06:30:30.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }