{ "id": "116023", "key": "TIMOB-14251", "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": "2014-05-27T23:23:41.000+0000", "created": "2013-06-15T22:35:54.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_scrollView", "qe-3.1.1", "qe-3.3.0", "qe-testadded", "regression", "sdk-bb" ], "versions": [], "issuelinks": [ { "id": "37817", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "116024", "key": "TIMOB-14252", "fields": { "summary": "BlackBerry : Setting 'contentWidth' on scrollview for labels puts them in an infinite drawing loop", "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": "Critical", "id": "1" }, "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": "2014-06-30T09:36:57.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": "Note : This is a regression.\r\n\r\nDescription:\r\n1. Create an app for BB with the following code:\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\n \r\nvar scroll = Ti.UI.createScrollView({\r\n backgroundColor: 'green',\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FILL,\r\n layout: 'vertical',\r\n contentHeight:Ti.UI.SIZE,\r\n contentWidth:Ti.UI.SIZE \r\n});\r\n \r\nfunction MyButton(title) {\r\n return Ti.UI.createButton({\r\n title: title,\r\n top: 10\r\n });\r\n}\r\n \r\nfor(var i = 0; i < 100; i++) {\r\n scroll.add(MyButton('Button #' + (i + 1))); \r\n}\r\n \r\nwin.add(scroll);\r\nwin.open();\r\n{code}\r\n\r\n2. Build it for BB device/simulator\r\n3. launch the app & observe the buttons\r\n\r\nActual Result:\r\n1. The buttons are seen at the very left side of the screen\r\n\r\nExpected Result:\r\n1. The buttons should be at the center of the screen ", "attachment": [ { "id": "41264", "filename": "TIMOB-14251.png", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T07:17:21.000+0000", "size": 72608, "mimeType": "image/png" } ], "flagged": false, "summary": "BlackBerry : Setting 'contentWidth' on scrollview for buttons displays them on the left of the screen", "creator": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nTi Studio : 3.1.1.201306112235\r\nTi BB SDK : 3.1.1.v20130615002135\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", "comment": { "comments": [ { "id": "258100", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix & the buttons are displaying the center according to the code.\r\nThus closing.\r\n\r\nEnvironment:\r\nTi Studio : 3.1.1.201306112235\r\nTi BB SDK : 3.1.1.v20130615160957\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-16T00:56:45.000+0000", "updated": "2013-06-16T00:56:45.000+0000" }, { "id": "264651", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with:\n\nStudio: 3.1.2.201307311816\nSDK: 3.1.2.v20130801190110\nacs:1.0.4\nalloy:1.2.0-alpha3\ntitanium:3.1.2-alpha\ntitanium-code-processor:1.0.2-alpha\nOS: OSX 10.8.4\nDevice:Blackberry-Z10(v 10.0.10.261)\nblackberry SDK: 10.1.0.1020\n\nAttached the screenShot for the same", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T07:18:04.000+0000", "updated": "2013-08-02T07:18:04.000+0000" }, { "id": "264816", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/145", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T21:35:31.000+0000", "updated": "2013-08-02T21:35:31.000+0000" }, { "id": "272818", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with:\r\n\r\nStudio: 3.1.3.201309132456\r\nSDK: 3.1.4.v20130918151553\r\nacs:1.0.6\r\nalloy:1.2.2\r\ntitanium:3.1.2\r\ntitanium-code-processor:1.0.3\r\nOS: OSX 10.8.4\r\nDevice:Blackberry-Z10(v 10.0.10.261)\r\n\r\nClosing the issue as getting the Buttons placed on center though scrollview has been set with ContentWidth.\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-25T08:17:16.000+0000", "updated": "2013-09-25T08:17:16.000+0000" }, { "id": "306481", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and ran in to the original issue, all buttons are on the left. \r\nEnvironment:\r\nAppcelerator Studio, build: 3.3.0.201405161313 \r\nTitanium SDK, build: 3.3.0.v20140524224144 \r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-alpha4 \r\nnpm@1.3.2 \r\ntitanium@3.3.0-alpha5 \r\ntitanium-code-processor@1.1.1\r\nDevice: BB Z10 (10.2.1)", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-27T17:40:41.000+0000", "updated": "2014-05-27T17:40:41.000+0000" }, { "id": "306558", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/248", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-27T23:17:54.000+0000", "updated": "2014-05-27T23:17:54.000+0000" }, { "id": "306559", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/248", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-27T23:23:37.000+0000", "updated": "2014-05-27T23:23:37.000+0000" }, { "id": "311597", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with:\r\n\r\nAppcelerator-Studio:3.3.0.201406271159 \r\nSdk:3.3.0.v20140627202512 \r\nacs:1.0.14 \r\nalloy:1.4.0-rc3 \r\nnpm:1.3.2 \r\ntitanium:3.3.0-rc4 \r\ntitanium-code-processor:1.1.1 \r\nxcode:5.1.1 \r\nOS:Maverick(10.9.3) \r\nDevice:Blackberry Z10(10.0.10.261)\r\n\r\nSetting 'contentWidth' on scrollview displays all the button on center of the screen. \r\nWorking as expected. \r\nHence closing the issue.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-30T09:36:57.000+0000", "updated": "2014-06-30T09:36:57.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }