{ "id": "89166", "key": "TIMOB-8420", "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:23.000+0000", "created": "2012-03-29T13:12:52.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" }, "inwardIssue": { "id": "89167", "key": "TIMOB-8421", "fields": { "summary": "MobileWeb: Sizes in millimeters interpreted incorrectly", "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 } } } }, { "id": "16202", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "89169", "key": "TIMOB-8422", "fields": { "summary": "iOS: Specifying a size in points is not supported", "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:25:48.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 (pt), the layout does not work correctly.\r\n\r\nGiven the following code, the two labels l1 and l2 should be the same size and aligned vertically, as shown in the Android screenshot. Instead, the views are not aligned correctly and the sizes are wrong.\r\n\r\nThe same error occurs if the second view is sized in picas (pc) or ems (em), but not if it is sized in inches or units.\r\n\r\nA *different* error occurs if it is sized in millimeters, but that is a subject for another bug.\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\twidth:'72pt',\r\n\theight:'72pt'\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": "26702", "filename": "composite_layout_android.png", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-29T13:12:52.000+0000", "size": 9657, "mimeType": "image/png" }, { "id": "26703", "filename": "composite_layout_mobileweb.png", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-29T13:12:53.000+0000", "size": 36590, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: Specifying a size in points (pt) causes layout errors.", "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": "198296", "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-12T22:03:41.000+0000", "updated": "2012-06-12T22:03:41.000+0000" }, { "id": "213204", "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.2.0.v20120807070117\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:40:22.000+0000", "updated": "2012-08-07T13:40:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }