{ "id": "78618", "key": "TIMOB-4863", "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": "12079", "description": "", "name": "Sprint 2011-39", "archived": true, "released": true, "releaseDate": "2011-10-03" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-22T11:32:08.000+0000", "created": "2011-08-01T15:53:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_scrollableview", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:23.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": "The 'currentPage' setting does not work if scrollableview is added to a view. It works if it is added to a window( as done in Kitchensink)\r\n\r\nRun the code snippet below to reproduce the issue.\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Ti.UI.createWindow(\r\n{\r\n});\r\n\r\nvar view1 = Ti.UI.createView(\r\n{\r\n\tbackgroundColor:'red'\r\n});\r\n\r\nvar view2 = Ti.UI.createView(\r\n{\r\n\tbackgroundColor:'blue'\r\n});\r\n\r\nvar scrollView = Titanium.UI.createScrollableView(\r\n{\r\n\tviews:[view1,view2],\r\n\tshowPagingControl:true,\r\n\tpagingControlHeight:30,\r\n\tmaxZoomScale:2.0,\r\n\tcurrentPage:1,\r\n\theight:340\r\n});\r\n\r\nvar view = Ti.UI.createView(\r\n{\r\n});\r\n\r\nview.add(scrollView);\r\n\r\nwin.add(view);\r\n//win.add(scrollView); // this works!\r\nwin.open();\r\n{code}\r\n\r\nThe view1 is set as active inspite of the setting currentPage = 1", "attachment": [], "flagged": false, "summary": "'currentPage' setting does not work if scrollableView is added to a view", "creator": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 1.7.2 and iOS 4.3", "comment": { "comments": [ { "id": "162265", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h3.Associated Helpdesk:\r\n\r\nhttp://appc.me/c/APP-994949", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-09T16:54:34.000+0000", "updated": "2011-08-09T16:54:34.000+0000" }, { "id": "167265", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull pending #506", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-28T15:19:01.000+0000", "updated": "2011-09-28T15:19:01.000+0000" }, { "id": "173504", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Ti Studio 1.0.7.201111182325\r\nTi Mob SDK 1.8.0.1.v20111121090256\r\niPhone 4S OS 5.0, iPad 2 OS 4.3.5\r\n\r\nExpected behavior of the current page being 1 is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-21T11:10:14.000+0000", "updated": "2011-11-21T11:10:14.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }