[TIMOB-2609] iOS: WebView rendering issues with local HTML and PDF content
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-06-22T22:06:03.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | core |
Reporter | Jérémy R |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:24:40.000+0000 |
Updated | 2017-06-22T22:06:03.000+0000 |
Description
Not talking about creating a WebView and setting the URL property to a direct link (either local or remote).
I did a snippet to demonstrates.
Loading the pdf with the 1st scrollable view is not ok. Direct URL property on scrollable 2nd is.
var win1 = Titanium.UI.createWindow({
//top:0, bottom:0, left:0, right:0
});
var scrollable = Titanium.UI.createScrollableView({
top:10, bottom:0, left:0, right:0,
backgroundColor:'red'
});
for (var i=0; i<10; i++) {
var webview = Titanium.UI.createWebView({
top:10, bottom:0, left:0, right:0,
url:'http://google.com'
});
if (i === 0) {
webview.setUrl('someFile.html');
}
if (i === 1) {
webview.setUrl('NixonCarpenter_Clad2000.pdf');
}
scrollable.addView(webview);
}
win1.add(scrollable);
var win2 = Titanium.UI.createWindow({
top:0, bottom:0, left:0, right:0
});
var btn = Titanium.UI.createButton({
title:'Go to webview'
});
btn.addEventListener('click', function(e) {
win2.close();
win1.open();
});
win2.add(btn);
win2.open();
External resources:
1) A PDF
Random PDF found on Google @ http://www.phylosophy.org/NixonCarpenter_Clad2000.pdf">http://www.phylosophy.org/NixonCarpenter_Clad2000.pdf
Location [PROJECT_DIR]/Resources/NixonCarpenter_Clad2000.pdf
2) Simple HTML file
Location [PROJECT_DIR]/Resources/someFile.html
Content: Basic html/body structure with a link to
app://Resources/NixonCarpenter_Clad2000.pdf
Attachement: /Resources directory + screenshots
Attachments
File | Date | Size |
---|---|---|
archive.zip | 2011-04-15T03:24:41.000+0000 | 1078113 |
Any infirmation/confirmation about this ?
Tested SDK 2.2.0.014b86f. Issue 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.
I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131