{ "id": "116024", "key": "TIMOB-14252", "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-02T23:07:39.000+0000", "created": "2013-06-15T22:41:15.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-3.1.1", "qe-testadded", "regression", "sdk-bb" ], "versions": [], "issuelinks": [ { "id": "37817", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "116023", "key": "TIMOB-14251", "fields": { "summary": "BlackBerry : Setting 'contentWidth' on scrollview for buttons displays them on the left of the screen", "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 } } } }, { "id": "33764", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "123726", "key": "TIMOB-15990", "fields": { "summary": "BlackBerry: Scroll View - chaotically missing labels ", "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": "2014-06-30T09:35: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": "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(text) {\r\n return Ti.UI.createLabel({\r\n text: text,\r\n top: 10,\r\n //width:50\r\n });\r\n}\r\n \r\nfor(var i = 0; i < 100; i++) {\r\n scroll.add(MyButton('Label #' + (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 labels\r\n\r\nActual Result:\r\n1. The labels are in an infinite drawing loop \r\n\r\nExpected Result:\r\n1. The labels should be displayed in the center of the screen", "attachment": [ { "id": "41265", "filename": "TIMOB-14252.png", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T07:51:30.000+0000", "size": 72153, "mimeType": "image/png" } ], "flagged": false, "summary": "BlackBerry : Setting 'contentWidth' on scrollview for labels puts them in an infinite drawing loop", "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": "258101", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix & the labels are now displayed as in the code & do not get in an infinite drawing loop.\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:58:07.000+0000", "updated": "2013-06-16T00:58:07.000+0000" }, { "id": "264652", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with:\r\n\r\nStudio: 3.1.2.201307311816\r\nSDK: 3.1.2.v20130801190110\r\nacs:1.0.4\r\nalloy:1.2.0-alpha3\r\ntitanium:3.1.2-alpha\r\ntitanium-code-processor:1.0.2-alpha\r\nOS: OSX 10.8.4\r\nDevice:Blackberry-Z10(v 10.0.10.261)\r\nblackberry SDK: 10.1.0.1020\r\n\r\n\r\nLabels are not put on infinite loop but are seen towards left of the screen not on the centre.\r\nAlso attached the screenshot for the same.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T07:52:15.000+0000", "updated": "2013-08-02T07:53:25.000+0000" }, { "id": "264815", "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:08.000+0000", "updated": "2013-08-02T21:35:08.000+0000" }, { "id": "306483", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified labels are not in infinite loop, however are not centered.\r\nLinking to TIMOB-14251.\r\n\r\nEnvironment:\r\n Appcelerator 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:48:13.000+0000", "updated": "2014-05-27T17:48:13.000+0000" }, { "id": "311595", "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 buttons.Does not goes on infinite loop.\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:35:39.000+0000", "updated": "2014-06-30T09:35:39.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }