{ "id": "65797", "key": "TIMOB-4465", "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": "2011-05-26T05:44:33.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-04-13T20:12:30.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When the following code is run on a Sony X10 (Android device), the Ti.Platform.displayCaps are not correct, causing UI objects to be shrunk to an extent where they are unreadable. The following code demonstrates the issue:\r\n\r\n{code:lang=javascript}\r\nTi.API.info(\"Display dimensions: \" + Ti.Platform.displayCaps.platformWidth + \" x \" + Ti.Platform.displayCaps.platformHeight);\r\n{code}\r\n\r\nWhen running 1.6.2 it returns \"Display dimensions: 320 x 569\" (correct)\r\nWhen running 1.7.0 it returns \"Display dimensions: 480 X 854\" (too large)\r\n\r\n\r\nSee original QA\r\n[http://developer.appcelerator.com/question/120119/weird-ui-issues]\r\n\r\n", "attachment": [], "flagged": false, "summary": "Sony X10: Ti.Platform.displayCaps does not return correct values, causing UI objects to be shrunk in size", "creator": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Problem occurs on:\r\n\r\n* Titanium SDK version: 1.7.0 (06/06/11 18:05 64155ee)\r\n* Android 2.2, 2.3\r\n* Sony X10 Xperia\r\n\r\nNote that Titanium SDK version: 1.6.2 (04/18/11 17:16 878906d) does *not* exhibit the issue", "comment": { "comments": [ { "id": "134422", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "In order for us to progress this issue, edit your ticket to include a proper [Use-case|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases].\n\nAlso include the Titanium SDK version (including date + commit hash) that this has been tested on.\n\nPlease read the [Submitting Bug Reports|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-SubmittingBugReports] guide before raising tickets.\n\nThank you", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-05-28T03:13:19.000+0000", "updated": "2011-05-28T03:13:19.000+0000" }, { "id": "156419", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "No response from user after request for information. Marking resolved / incomplete.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-10T04:08:49.000+0000", "updated": "2011-06-10T04:08:49.000+0000" }, { "id": "156546", "author": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry.... I haven't had time ( I had just went back to 1.6 to take care of it for the time...)\r\nIn the app.js just put an alert of Titanium.Platform.displayCaps.platformWidth + \" X \" + Titanium.Platform.displayCaps.platformHeight on a Sony Xperia X10 i get \r\n\r\n1.6 (latest) it's 569 X 320\r\n1.7 (latest not RC) it's 854 X 480\r\n\r\n\r\n", "updateAuthor": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-12T18:25:34.000+0000", "updated": "2011-06-12T18:25:34.000+0000" }, { "id": "156619", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Chris\r\n\r\nThis is not an adequate usecase - it needs to be a script that runs without modification when pasted into a blank app.js file. Then it needs to be tested in your environment to confirm it demonstrates the issue. Please read the links I provided for more information.\r\n\r\nThank you", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-13T12:51:45.000+0000", "updated": "2011-06-13T12:51:45.000+0000" }, { "id": "156621", "author": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here you go... \r\nput this in your app.js\r\n\r\nalert(Titanium.Platform.displayCaps.platformWidth + \" X \" + Titanium.Platform.displayCaps.platformHeight);\r\n\r\nWhen running 1.6.2 (latest) it returns \"320 x 569\"\r\nWhen running 1.7.0 (latest not RC) it returns \"480 X 854\"\r\n\r\nThis is on a Sony X10 Running Android 2.2.1", "updateAuthor": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-13T13:01:05.000+0000", "updated": "2011-06-13T13:02:03.000+0000" }, { "id": "156626", "author": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Why is this closed? I gave you what you asked for... It's a real issue causing problems...", "updateAuthor": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-13T13:43:31.000+0000", "updated": "2011-06-13T13:43:31.000+0000" }, { "id": "156659", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Chris\r\n\r\nPlease note what I said before, \"In order for us to progress this issue, *edit your ticket* to include...\".\r\n\r\nPlease provide the *build date and hash* of the Titanium SDKs you've tested.\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-13T17:10:43.000+0000", "updated": "2011-06-13T17:10:43.000+0000" }, { "id": "156661", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Also, as you have specifically mentioned UI objects in the summary and description, demonstrate the issue with at least one UI element included in your code. Ensure that you use the wiki markup provided.\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-13T17:14:43.000+0000", "updated": "2011-06-13T17:14:43.000+0000" }, { "id": "156798", "author": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "body": "How do I get the hash and build date?", "updateAuthor": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-15T07:14:36.000+0000", "updated": "2011-06-15T07:14:36.000+0000" }, { "id": "157093", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "When the app is started, the build date and hash are output to the TiStudio console. Alternatively, use {{adb -e logcat}} from the shell.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-18T16:51:53.000+0000", "updated": "2011-06-18T16:51:53.000+0000" }, { "id": "157109", "author": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[INFO] Titanium SDK version: 1.7.0 (06/06/11 18:05 64155ee)\r\nand\r\n[INFO] Titanium SDK version: 1.6.2 (04/18/11 17:16 878906d)", "updateAuthor": { "name": "cwhittl", "key": "cwhittl", "displayName": "Chris Whittle", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-19T19:07:05.000+0000", "updated": "2011-06-19T19:07:05.000+0000" }, { "id": "157220", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Chris, I really can't afford to spend any further time on this single ticket. I will correct it for you this time, but please ensure that any future tickets you raise are in accordance with the [Submitting Bug Reports|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-SubmittingBugReports] guide.\r\n\r\nPlease see the amended ticket to see what is required.\r\n\r\nThank you\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-20T15:23:21.000+0000", "updated": "2011-06-20T15:25:00.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }