{ "id": "84802", "key": "TIMOB-7127", "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": "12094", "description": "", "name": "Sprint 2012-02", "archived": true, "released": true, "releaseDate": "2012-01-29" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-09T23:47:43.000+0000", "created": "2012-01-12T10:31:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_scrollableview", "parity", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-24T19:48: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3.Issue\r\nProper methods are not able to programmatically hide and show the pagingControl.\r\n\r\nh6.Tested on\r\niOS 5 simulator & iPhone 4.3\r\n\r\nh6.Expected results\r\nControl be shown\r\n\r\nh6.Unexpected results\r\nOnce the control is hidden, it never returns properly - it just a black view with no dots and no control color per original color.\r\n\r\nh6.Steps to reproduce\r\n* Click the button twice to see the pagingControl behavior.\r\n\r\nh6.Repro sequence\r\n{code:title=app.js}\r\nvar win = Titanium.UI.createWindow({backgroundColor: 'c6c6c6'});\r\n\r\n/*\r\nvar view1 = Ti.UI.createView({\r\n\tbackgroundColor:'red'\r\n});\r\n\r\nvar view2 = Ti.UI.createView({\r\n\tbackgroundColor:'blue'\r\n});\r\n*/\r\n\r\nvar s = Titanium.UI.createScrollableView({\r\n\t//views:[view1, view2],\r\n borderColor: 'red', \r\n backgroundColor: 'purple',\r\n width: 100, height: 200, \r\n pagingControlColor: 'blue',\r\n pagingControlHeight: 30,\r\n showPagingControl: true\r\n});\r\n\r\ns.addView(Ti.UI.createView({ backgroundColor: 'green'}));\r\ns.addView(Ti.UI.createView({ backgroundColor: 'white'}));\r\n\r\nvar b = Titanium.UI.createButton({\r\n title: 'click',\r\n width: 100, \r\n height: 40, \r\n bottom: 2\r\n});\r\n\r\nb.addEventListener('click', function() {\r\n if (s.getShowPagingControl()) {\r\n Ti.API.info('turning off paging control');\r\n s.setShowPagingControl(false);\r\n\r\n } else {\r\n Ti.API.info('turning on paging control');\r\n s.setShowPagingControl(true);\r\n }\r\n});\r\n\r\nwin.add(s);\r\nwin.add(b);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh6.Console log\r\n{noformat}\r\n[INFO] One moment, building ...\r\n[INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f)\r\n[INFO] iPhone Device family: universal\r\n[INFO] iPhone SDK version: 5.0\r\n[INFO] iPhone simulated device: iphone\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (6.62 seconds)\r\n[INFO] Found 5.0 patch installed\r\n[INFO] Application started\r\n[INFO] T14088/1.0 (1.8.0.1.fbdc96f)\r\n[INFO] turning off paging control\r\n[INFO] turning on paging control\r\n[INFO] turning off paging control\r\n[INFO] turning on paging control\r\n[INFO] turning off paging control\r\n[INFO] turning on paging control\r\n[INFO] turning off paging control\r\n{noformat}", "attachment": [ { "id": "25036", "filename": "PagingControlOFF.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T10:31:07.000+0000", "size": 28863, "mimeType": "image/jpeg" }, { "id": "25035", "filename": "PagingControlON.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T10:31:07.000+0000", "size": 29215, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: ScrollableView showPagingControl doesn't work properly after creation", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: Mobile 1.8.0.1\r\nPlatform OS: iOS Version: iOS 5 ", "comment": { "comments": [ { "id": "179629", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Use the following code to test setting height and showcontrols flag programmatically\r\n{code:title=app.js}\r\nvar win = Titanium.UI.createWindow({backgroundColor: 'c6c6c6'});\r\n\r\nvar s = Titanium.UI.createScrollableView({\r\n borderColor: 'red', \r\n backgroundColor: 'purple',\r\n width: 200, height: 200, \r\n pagingControlColor: 'blue',\r\n pagingControlHeight: 10\r\n});\r\n\r\ns.addView(Ti.UI.createView({ backgroundColor: 'green'}));\r\ns.addView(Ti.UI.createView({ backgroundColor: 'white'}));\r\n\r\nvar b = Titanium.UI.createButton({\r\n title: 'Show/Hide',\r\n width: 100, \r\n height: 40, \r\n left:10,\r\n bottom: 2\r\n});\r\n\r\nb.addEventListener('click', function() {\r\n if (s.showPagingControl) {\r\n Ti.API.info('turning off paging control');\r\n s.setShowPagingControl(false);\r\n\r\n } else {\r\n Ti.API.info('turning on paging control');\r\n s.setShowPagingControl(true);\r\n }\r\n});\r\n\r\nvar b1 = Titanium.UI.createButton({\r\n title: 'Size',\r\n width: 100, \r\n height: 40, \r\n right:10,\r\n bottom: 2\r\n});\r\n\r\nb1.addEventListener('click', function() {\r\n if (s.pagingControlHeight == 10) {\r\n Ti.API.info('Set height to 20');\r\n s.setPagingControlHeight(20);\r\n\r\n } else {\r\n Ti.API.info('Set height to 10');\r\n s.setPagingControlHeight(10);\r\n }\r\n});\r\n\r\nwin.add(s);\r\nwin.add(b);\r\nwin.add(b1);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-17T13:17:35.000+0000", "updated": "2012-01-17T13:18:30.000+0000" }, { "id": "179630", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending #1199", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-17T13:19:24.000+0000", "updated": "2012-01-17T13:19:24.000+0000" }, { "id": "179932", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with SDK 1.9.0.v20120119131634 on iPhone 4s (5.0.1) and Simulator 5.0", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-19T14:46:59.000+0000", "updated": "2012-01-19T14:46:59.000+0000" }, { "id": "181399", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "updated labels", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-01T14:54:23.000+0000", "updated": "2012-02-01T14:54:23.000+0000" }, { "id": "278872", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil test case added.\nhttps://github.com/appcelerator/titanium_mobile/pull/4943", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-10T16:36:22.000+0000", "updated": "2013-11-10T16:36:22.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }