{ "id": "124592", "key": "TIMOB-16160", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-22T09:30:36.000+0000", "created": "2014-01-09T08:55:18.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "3.2.0GA", "ios", "module_scrollableview", "qe-manualtest" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "34265", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "124714", "key": "AC-2348", "fields": { "summary": "ScrollView addView not functioning as expected ( SDK 3.2.0 )", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-22T09:30:36.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": "add more than one webview to a scrollableview with addView is not working with Ti SDK 3.2.0\r\n\r\nthis code doesn't work, webviews won't load\r\n\r\n{color:red} \r\nvar win = Ti.UI.createWindow();\r\nvar scrollableview = Ti.UI.createScrollableView();\r\nwin.add(scrollableview);\r\nvar webview1 = Ti.UI.createWebView({\r\n\turl: \"http://www.appcelerator.com\",\r\n});\r\nscrollableview.addView(webview1);\r\nvar webview2 = Ti.UI.createWebView({\r\n\turl: \"http://www.google.com\",\r\n});\r\nscrollableview.addView(webview2);\r\nwin.open(); \r\n{color}\r\n\r\nthis only happens if adding webviews with scrollableview.addView. if the views will be assigned on creation there is no problem with the webviews. see the following code\r\n\r\n{color:green}\r\nvar win = Ti.UI.createWindow();\r\nvar webview1 = Ti.UI.createWebView({\r\n\turl: \"http://www.appcelerator.com\",\r\n});\r\nvar webview2 = Ti.UI.createWebView({\r\n\turl: \"http://www.google.com\",\r\n});\r\nvar scrollableview = Ti.UI.createScrollableView({\r\n\tviews: [\r\n\t\twebview1,\r\n\t\twebview2\r\n\t]\r\n});\r\nwin.add(scrollableview);\r\nwin.open();\r\n{color}\r\n\r\nthis code is working fine.\r\n\r\nso there is no possibility to add webviews to the scrollableviews at runtime.", "attachment": [], "flagged": false, "summary": "iOS: Adding more than one view to a scrollableview with addView does not work", "creator": { "name": "sempfglas", "key": "sempfglas", "displayName": "Jens F.", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sempfglas", "key": "sempfglas", "displayName": "Jens F.", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.2.0\r\niOS SDK 7.0.3\r\nSimulator Version 7.0.3 or Device iPad3 7.0.4", "comment": { "comments": [ { "id": "287600", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce both working and non working cases with the provided test cases.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-10T06:24:03.000+0000", "updated": "2014-01-10T06:24:03.000+0000" }, { "id": "287646", "author": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "body": "Getting this also. WebView in a scrollable view doesn't load HOWEVER if I scroll through all the views (webview and then images) and get to the last one, THEN go back to the webview it has loaded.", "updateAuthor": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "created": "2014-01-10T16:05:30.000+0000", "updated": "2014-01-10T16:05:30.000+0000" }, { "id": "287647", "author": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "body": "Workaround based on code above worked. \n\n1. Create array\n2. push views to array\n3. create ScrollableView on the fly, views = your array\n\nThis works fine.\n\nIn Alloy, I simply replaced the scrollableView with a view wrapper, created the scrollableView in the code.", "updateAuthor": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "created": "2014-01-10T16:15:48.000+0000", "updated": "2014-01-10T16:15:48.000+0000" }, { "id": "288059", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note that this issue is not specific to web views and can be reproduced with other views as well. TC-3565 has been marked as a duplicate of this ticket.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-14T04:05:27.000+0000", "updated": "2014-01-14T04:05:27.000+0000" }, { "id": "319651", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduced with SDK Version 3.2.0 GA\r\n\r\nBut cannot be reproduced with SDK 3.4.0 GA \r\n\r\nCLI version 3.3.0,\r\n Titanium SDK version 3.4.0\r\n Titanium SDK version 3.2.0\r\niOS SDK: 7.1\r\nAppcelerator Studio, build: 3.3.0.201407111535", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-21T05:33:13.000+0000", "updated": "2014-08-21T05:33:13.000+0000" }, { "id": "319887", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A scrollableview with more than one webview added using addview works correct.\r\nVerified on:\r\nAppc Studio: 3.4.0.201408210941\r\nSDK: 3.4.0.v20140821144114\r\nCLI: 3.4.0-Dev\r\nXCode: Xcode6-Beta6\r\nDevices: iPhone 4 (v7.1), iPhone 5S (v8.0 beta), iOS Simulator (7.0.3)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-22T09:25:20.000+0000", "updated": "2014-08-22T09:25:20.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }