{ "id": "113920", "key": "TIMOB-13777", "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-08-07T15:45:47.000+0000", "created": "2013-05-07T15:20:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_layout", "qe-testadded" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T07:52:10.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": "Take the following example. You should see a white margin around this red view. Instead you'll see that margin only on the top and left side of the view.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\tleft: 10,\r\n\tright: 10,\r\n\tbottom: 10,\r\n\ttop: 10,\r\n\tbackgroundColor: 'red'\r\n});\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "38164", "filename": "Screen Shot 2013-05-07 at 8.19.42 AM.png", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T15:20:55.000+0000", "size": 61189, "mimeType": "image/png" }, { "id": "38165", "filename": "Screen Shot 2013-05-07 at 8.20.42 AM.png", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T15:20:55.000+0000", "size": 112158, "mimeType": "image/png" } ], "flagged": false, "summary": "BlackBerry - Setting left and right does not calculate the width. The same thing with top and bottom.", "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": "253982", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This should stay 3.1.1 as it's RC and we may spin another build next week", "updateAuthor": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-25T03:08:44.000+0000", "updated": "2013-05-25T03:08:44.000+0000" }, { "id": "254642", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Functional test failed.\r\n\r\nWorks on views who's default width and height are \"FILL\" but fails on views that who's width and height are \"SIZE\", Labels, for example, fail.\r\n\r\nThis is supposed to create a label with a red background color and a 10 margin all around, instead, it is sized to fit its text and it's placed at the top 10 and left 10 of the screen:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar view = Ti.UI.createLabel({\r\n text: 'Hello World',\r\n backgroundColor: 'red',\r\n left: 10,\r\n right: 10,\r\n top: 10,\r\n bottom: 10\r\n});\r\nwin.add(view);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-29T20:56:26.000+0000", "updated": "2013-05-29T20:57:11.000+0000" }, { "id": "254832", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm still working on this one. It works for simple views but not controls that the os resizes. I think I'm close and should have it working this morning. Then will do a PR. It's not a regression so 3.1.1 could go out without, but it should get in as soon as possible.", "updateAuthor": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-30T14:41:55.000+0000", "updated": "2013-05-30T14:41:55.000+0000" }, { "id": "254860", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm going to defer from 3.1.1 to 3.1.2. Trying to keep the list as short as possible.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-30T16:25:19.000+0000", "updated": "2013-05-30T16:26:03.000+0000" }, { "id": "257939", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix & now setting left right & top & bottom works as expected as in parity with IOS as shown in the screenshot attached.\r\n\r\nEnvironment:\r\nTi Studio : 3.1.1.201306112235\r\nTi BB SDK : 3.1.1.v20130613185544\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", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-14T18:38:03.000+0000", "updated": "2013-06-14T18:38:03.000+0000" }, { "id": "410238", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T07:52:10.000+0000", "updated": "2017-03-09T07:52:10.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }