{ "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\n

I did a snippet to demonstrates.

\r\n

Loading 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\n

External 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

\r\n

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

\r\n

Attachement: /Resources directory + screenshots

{html}", "attachment": [ { "id": "18178", "filename": "archive.zip", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2011-04-15T03:24:41.000+0000", "size": 1078113, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: WebView rendering issues with local HTML and PDF content", "creator": { "name": "jérémyr", "key": "jérémyr", "displayName": "Jérémy R", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jérémyr", "key": "jérémyr", "displayName": "Jérémy R", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128972", "author": { "name": "jérémyr", "key": "jérémyr", "displayName": "Jérémy R", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Any infirmation/confirmation about this ?

{html}", "updateAuthor": { "name": "jérémyr", "key": "jérémyr", "displayName": "Jérémy R", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:41.000+0000", "updated": "2011-04-15T03:24:41.000+0000" }, { "id": "209713", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested SDK 2.2.0.014b86f.\r\n\r\nIssue is not exactly as described. It looks like the local page and HTML content are not rendered until the scrollable view is scrolled a few times, possibly to the first Google page.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T13:02:15.000+0000", "updated": "2012-07-26T13:02:15.000+0000" }, { "id": "422583", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-22T22:06:03.000+0000", "updated": "2017-06-22T22:06:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }