{ "id": "115553", "key": "TIMOB-14129", "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": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-06T18:43:25.000+0000", "created": "2013-06-05T21:34:56.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_layout", "qe-3.1.1", "qe-nfc", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "29350", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "99161", "key": "TIMOB-10434", "fields": { "summary": "BlackBerry: Titanium.UI.Label text colors and sizes are not right", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-06-24T22:07:17.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "h3. Problem\r\nWhen creating a UI component and giving it a width of Ti.UI.SIZE, the component will be placed at the 0,0 position of the parent view, no matter if top, left, right, and bottom are defined.\r\nh3. Code\r\n{code}\r\nvar win = Ti.UI.createWindow({});\r\n\r\nvar button = Ti.UI.createButton({\r\n top: 100,\r\n left: 50,\r\n width: Ti.UI.SIZE,\r\n title: 'this is a button'\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\nh3. More\r\nIf margins are given, the component must respect them - not ignore them. If margin are not given, the component must be centered in the parent view, not be placed at 0,0", "attachment": [], "flagged": false, "summary": "BlackBerry: Ti.UI.SIZE for width on components break position", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "256448", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3.1.x\r\nhttps://github.com/appcelerator/titanium_mobile_blackberry/pull/84", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-06T17:27:20.000+0000", "updated": "2013-06-06T17:27:20.000+0000" }, { "id": "256517", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix & the top & left are not ignored but respected.\r\nThus closing.\r\n\r\nEnvironment:\r\nTi Studio : 3.1.1.201306041657\r\nTi BB SDK : 3.1.1.v20130606121419\r\nMac OSX : 10.8.3\r\nAlloy : 1.1.3-cr\r\nCLI - 3.1.1-cr\r\nwin 7 \r\nWin 8 \r\nZ10 BB simulator : 10.0.10.822\r\nZ10 device running 10.0.10.88\r\n", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-06T21:41:44.000+0000", "updated": "2013-06-06T21:41:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }