{ "id": "99435", "key": "TIMOB-10493", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15400", "description": "2013 Sprint 08 API", "name": "2013 Sprint 08 API", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15106", "description": "2013 Sprint 08", "name": "2013 Sprint 08", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-22T16:31:49.000+0000", "created": "2012-08-20T09:27:29.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "community", "module_dashboardview", "qe-closed-3.1.1", "qe-testadded", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "22256", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "102761", "key": "TIMOB-11280", "fields": { "summary": "iOS: Customer needs the Titanium.UI.DashboardView to have a 4X4 formation instead of 3X3", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-19T23:32:29.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "We should be able to specify a rowCount and columnCount when creating a DashboardView.", "attachment": [], "flagged": false, "summary": "iOS: DashboardView rowCount and columnCount properties", "creator": { "name": "rfranknj", "key": "rfranknj", "displayName": "Russell Frank", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "rfranknj", "key": "rfranknj", "displayName": "Russell Frank", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium Mobile SDK HEAD\r\niOS", "comment": { "comments": [ { "id": "215127", "author": { "name": "rfranknj", "key": "rfranknj", "displayName": "Russell Frank", "active": true, "timeZone": "America/New_York" }, "body": "Pull request opened on Github: [#2782 iOS: DashboardView rowCount and columnCount properties|https://github.com/appcelerator/titanium_mobile/pull/2782]", "updateAuthor": { "name": "rfranknj", "key": "rfranknj", "displayName": "Russell Frank", "active": true, "timeZone": "America/New_York" }, "created": "2012-08-20T09:29:59.000+0000", "updated": "2012-08-20T09:29:59.000+0000" }, { "id": "217128", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.2.0.v20120830182512\r\nTested with Titanium  Studio: 2.1.2.201208301612\r\nDevice - Simulator iOS 5.1\r\nMachine OS - MAC 10.8", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-31T03:17:46.000+0000", "updated": "2012-08-31T03:17:46.000+0000" }, { "id": "245513", "author": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "body": "Property \"rowCount\" does not work, tested with SDK 3.0.2.GA\r\n\r\nSeems like value is not set in TiUIDashboardView.m:\r\n\r\n{code:xml}\r\nint rowCount = [TiUtils intValue:[self.proxy valueForKey:@\"rowCount\"] def:kDashboardViewDefaultRowCount];\r\nNSLog(@\"### rowCount: %d\", rowCount);\r\n{code}\r\n\r\nAlways returned the predefined number.\r\n\r\nCuriously columnCount works properly.\r\n\r\nAlso see https://developer.appcelerator.com/question/149207/columncount-and-rowcount-do-not-work-well-in-dashboardview", "updateAuthor": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-03T19:50:21.000+0000", "updated": "2013-04-03T19:50:21.000+0000" }, { "id": "245516", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening based on latest comments.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-03T20:12:07.000+0000", "updated": "2013-04-03T20:12:07.000+0000" }, { "id": "245628", "author": { "name": "rfranknj", "key": "rfranknj", "displayName": "Russell Frank", "active": true, "timeZone": "America/New_York" }, "body": "@Danny: The property is marked as 'creation' in the docs because it's only available when you create the object. You can't set it on the proxy and have it change the rowCount and columnCount. This is because the items are laid out in an array of pages and there currently isn't code to relayout across pages if the counts change.\r\n\r\nI'm not sure how Alloy handles properties in the XML, but it appears that it probably tries to set them on the proxy *after* running the factory function, which will of course not work.", "updateAuthor": { "name": "rfranknj", "key": "rfranknj", "displayName": "Russell Frank", "active": true, "timeZone": "America/New_York" }, "created": "2013-04-04T00:53:34.000+0000", "updated": "2013-04-04T00:53:34.000+0000" }, { "id": "245630", "author": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "body": "I don't use Alloy and of course I set the property in the creation statement:\r\n\r\n{code}\r\nvar dashboard = Ti.UI.createDashboardView({\r\n\tdata: data, // previously created and saved to array\r\n\trowCount: 2,\r\n\tcolumnCount: 3,\r\n\twobble: true,\r\n\ttop: 60,\r\n\theight: 250\r\n});\r\n{code}", "updateAuthor": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-04T01:00:01.000+0000", "updated": "2013-04-04T01:00:01.000+0000" }, { "id": "248039", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4181\r\n\r\nFor workaround in current implementation call setData explicitly after creating the proxy (Remove data from creation dict).", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-17T22:02:42.000+0000", "updated": "2013-04-17T23:39:51.000+0000" }, { "id": "248656", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_1_X\nhttps://github.com/appcelerator/titanium_mobile/pull/4201", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T18:52:47.000+0000", "updated": "2013-04-22T18:52:47.000+0000" }, { "id": "248703", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4.code for testing\n\n{code}\n\nvar items = [[], [], []];\n\nfor (var j = 0; j < 3; j++) {\n for (var i = 0; i < 20; i++) {\n var item = Ti.UI.createDashboardItem();\n item.add(Ti.UI.createLabel({\n text: \"item numba \" + i,\n borderColor: '#'+i+'0'+i+'000',\n borderWidth: 3,\n height: 'fill', width: 'fill'\n }));\n items[j][i] = item;\n }\n}\n\nvar dashboard = Ti.UI.createDashboardView({\n data: items[0], // previously created and saved to array\n rowCount: 2,\n columnCount: 3,\n wobble: true,\n top: 60,\n height: 250\n});\n\nvar win = Ti.UI.createWindow({\n\tbackgroundColor:'white',\n});\nwin.add(dashboard);\nwin.open();\n\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T23:56:08.000+0000", "updated": "2013-04-22T23:56:08.000+0000" }, { "id": "250671", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with the code above, using:\nAppcelerator Studio, build: 3.1.1.201305062045\nSDK, build: 3.1.1.v20130503173050\nDevices:\niPhone5 iOS 6.1.4\niPad4 iOS 6.1.3\nProperty columnCount works properly", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T22:37:52.000+0000", "updated": "2013-05-07T22:37:52.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }