{ "id": "89167", "key": "TIMOB-8421", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13400", "description": "Sprint 2012-12 Mobile Web", "name": "Sprint 2012-12 MW", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-14T13:51:04.000+0000", "created": "2012-03-29T13:13:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity", "qe-port" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "16201", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "89166", "key": "TIMOB-8420", "fields": { "summary": "MobileWeb: Specifying a size in points (pt) causes layout errors.", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-08T16:24:39.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "When adding a view with a size specified in points (mm), the view is sized in centimeters, instead.\r\n\r\nIn the following code sample, the blue and red boxes should be the same size, as on iOS. See attached screenshots.\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Composite Layout Test',\r\n backgroundColor:'#fff',\r\n layout: 'vertical'\r\n});\r\nvar l1 = Titanium.UI.createLabel({\r\n\ttop: 0,\r\n\tcolor:'#999',\r\n\tbackgroundColor: 'blue',\r\n\ttext:'1in',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'1in',\r\n\theight:'1in'\r\n});\r\nwin1.add(l1);\r\n\r\nvar l2 = Titanium.UI.createLabel({\r\n\ttop: 0,\r\n\tcolor:'#999',\r\n\tbackgroundColor: 'red',\r\n\ttext:'72pt',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n // this should be 1 inch\r\n\twidth:'25.4mm',\r\n\theight:'25.4mm'\r\n});\r\nwin1.add(l2);\r\n\r\nvar l3 = Titanium.UI.createLabel({\r\n\ttop: 0,\r\n\tcolor:'#999',\r\n\tbackgroundColor: 'green',\r\n\ttext:'72 units',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:72,\r\n\theight:72\r\n});\r\nwin1.add(l3);\r\n\r\nwin1.open();\r\n{code}", "attachment": [ { "id": "28307", "filename": "app.js", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-12T17:09:40.000+0000", "size": 3668, "mimeType": "application/x-javascript" }, { "id": "26705", "filename": "ios_layout_mm.png", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-29T13:19:34.000+0000", "size": 10810, "mimeType": "image/png" }, { "id": "26706", "filename": "mobileweb_mm.png", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-29T13:19:34.000+0000", "size": 25584, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: Sizes in millimeters interpreted incorrectly", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "189192", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also, centimeters appears to be unimplemented. According to the spec this should work.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-29T13:31:00.000+0000", "updated": "2012-03-29T13:31:00.000+0000" }, { "id": "198275", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2380", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-12T17:08:52.000+0000", "updated": "2012-06-12T17:08:52.000+0000" }, { "id": "198277", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "BTW, it's worth noting that most browsers use 96DPI, not 72, so you're comparisons above don't all work.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-12T17:09:18.000+0000", "updated": "2012-06-12T17:09:18.000+0000" }, { "id": "213202", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested On:\r\nTitanium studio : 2.1.1.201207271312\r\nSDK version : 2.0.3.v20120806151610\r\nAndroid 4.0.4 - default ,chrome 18.0\r\nIphone 4.3.5 - safari mobile\r\nMountain lion(10.8) - chrome 21.0,safari 5.1.4,firefox 14.0.1", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-07T13:27:20.000+0000", "updated": "2012-08-07T13:27:20.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }