{ "id": "63241", "key": "TIMOB-2609", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-22T22:06:03.000+0000", "created": "2011-04-15T03:24:40.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-22T22:06: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": "{html}
Not talking about creating a WebView and setting the URL\r\nproperty to a direct link (either local or remote).
\r\nI did a snippet to demonstrates.
\r\nLoading the pdf with the 1st scrollable view is not ok. Direct\r\nURL property on scrollable 2nd is.
\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n //top:0, bottom:0, left:0, right:0\r\n});\r\n\r\nvar scrollable = Titanium.UI.createScrollableView({\r\n top:10, bottom:0, left:0, right:0,\r\n backgroundColor:'red'\r\n});\r\n\r\nfor (var i=0; i<10; i++) {\r\n var webview = Titanium.UI.createWebView({\r\n top:10, bottom:0, left:0, right:0,\r\n url:'http://google.com'\r\n });\r\n if (i === 0) {\r\n webview.setUrl('someFile.html');\r\n }\r\n if (i === 1) {\r\n webview.setUrl('NixonCarpenter_Clad2000.pdf');\r\n }\r\n scrollable.addView(webview); \r\n}\r\n\r\nwin1.add(scrollable);\r\nvar win2 = Titanium.UI.createWindow({\r\n top:0, bottom:0, left:0, right:0\r\n});\r\nvar btn = Titanium.UI.createButton({\r\n title:'Go to webview'\r\n});\r\nbtn.addEventListener('click', function(e) {\r\n win2.close();\r\n win1.open();\r\n});\r\nwin2.add(btn);\r\nwin2.open();
\r\n
\r\nExternal resources:
\r\n1) A PDF
\r\nRandom PDF found on Google @ http://www.phylosophy.org/NixonCarpenter_Clad2000.pdf
\r\nLocation [PROJECT_DIR]/Resources/NixonCarpenter_Clad2000.pdf
2) Simple HTML file
\r\nLocation [PROJECT_DIR]/Resources/someFile.html
\r\nContent: Basic html/body structure with a link to\r\napp://Resources/NixonCarpenter_Clad2000.pdf
Attachement: /Resources directory + screenshots
Any infirmation/confirmation about this ?