{ "id": "140641", "key": "TIMOB-18102", "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": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-10T20:24:57.000+0000", "created": "2014-11-26T22:44:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [], "issuelinks": [], "assignee": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-12-11T02:16:03.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": "h5.Issue Description\r\nThis occurs on iPhone 6 ONLY scrollableView.currentPage initialized at index 3, displays index 1 (by setting its currentPage variable on creation). \r\n\r\nExpected results: Item at index 3 is shown \r\nActual results: Item at index 1 is shown \r\n\r\nh6.To reproduce: \r\nUnzip attachment into any Resources folder for a Classic Titanium project. \r\n# Run sample as iPhone6 and select red box \r\n# Watch the monitor logs.\r\n# Run sample as iPhone5/Android and select red box\r\n# Watch the monitor logs. The console displays the following:\r\n\r\n{code}\r\nOn Android\r\n11-25 14:27:29.563: I/TiAPI(1231): ScrollableView initialized at position: 3\r\n11-25 14:27:30.573: I/TiAPI(1231): ScrollableViews current page after one second: 3\r\n\r\nOn iPhone5\r\n[INFO] : Application started\r\n[INFO] : ScrollableViewBugRepro/1.0 (3.4.1.5982e8f)\r\n[INFO] : button pressed\r\n[INFO] : ScrollableView initialized at position: 3\r\n[INFO] : ScrollableViews current page after one second: 3\r\n\r\nOn iPhone6\r\n[INFO] : Application started\r\n[INFO] : ScrollableViewBugRepro/1.0 (3.4.1.5982e8f)\r\n[INFO] : button pressed\r\n[INFO] : ScrollableView initialized at position: 3\r\n[INFO] : ScrollableViews current page after one second: 1\r\n{code}\r\n\r\nh6.Additional information\r\nIf we do not put this.swiper (the scrollableView) into a container view, then the issue goes away only so long as its parent container has a 'vertical' layout (the parent container in the sample app is FirstView.js).\r\n\r\nWhen this 'vertical' layout property is removed from FirstView, we see the issue return, but slightly differently -- the index gets set to 2, instead of 1 (when it is initialized as 3). \r\n\r\nUnfortunately, we cannot use this as a workaround, as the view structure we need to build for the actual app needs the scrollableView to be in a container with other views, or to be set up without the vertical layout. \r\n{code}\r\n //AccountSwiper.js\r\n\treturn this.swiper; //<-- Uncomment to 'resolve' issue\r\n\treturn swiperContainerView;\r\n{code}", "attachment": [ { "id": "52856", "filename": "TestCase.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-11-26T22:44:04.000+0000", "size": 3227, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: ScrollableView.currentPage initialized at index 3, displays index 1", "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": "CLI/TiSDK 3.4.1.GA\r\niOS8 - iPhone6 (Device/Simulator)", "closedSprints": [ { "id": 272, "state": "closed", "name": "2014 Sprint 25 SDK", "startDate": "2014-12-08T22:49:31.264Z", "endDate": "2014-12-22T01:00:00.000Z", "completeDate": "2015-01-05T18:18:28.523Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "335666", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Having trouble reproducing this issue. Below is a PR that may fix the issue, but I haven't been able to confirm.\r\n\r\n[~egomez][~rtlechuga], Please test this build and let me know if it fixes the issue or not: https://dl.dropboxusercontent.com/u/7540194/mobilesdk-3.5.0-osx.zip\r\n\r\nThank you.\r\n\r\nPotential PRs:\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/6458\r\n3_5_X: https://github.com/appcelerator/titanium_mobile/pull/6459", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-09T19:57:26.000+0000", "updated": "2014-12-10T00:06:56.000+0000" }, { "id": "335727", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks [~jalter] the fix looks good so far. Customer confirmed that fixes the issue. ", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-09T23:01:41.000+0000", "updated": "2014-12-09T23:01:41.000+0000" }, { "id": "335868", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR's merged", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-10T20:24:57.000+0000", "updated": "2014-12-10T20:24:57.000+0000" }, { "id": "335943", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified \"ScrollableViews current page after one second: 3\" appears in Xcode console.\r\n\r\nTested on:\r\n\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nSDK build: 3.5.0.v20141210144440\r\nCLI: 3.4.1\r\nAlloy: 1.5.1\r\nXcode: 6.2 beta \r\nDevices: iphone 6 (8.1), iphone 5s (8.0.2)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-11T02:15:05.000+0000", "updated": "2014-12-11T02:15:05.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }