GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-24T15:40:36.000+0000 |
Affected Version/s | Release 1.8.2, Release 2.0.1 |
Fix Version/s | Release 2.0.2, Release 2.1.0, Sprint 2012-09 API |
Components | iOS |
Labels | SupportTeam, api, module_webview, qe-testadded, regression |
Reporter | Federico Casali |
Assignee | Vishal Duggal |
Created | 2012-04-23T12:23:00.000+0000 |
Updated | 2012-07-13T10:13:50.000+0000 |
Problem description
Opening a PDF inside a webView, a loading indicator should be shown before the PDF is displayed. Setting backgroundColor:'white' (or any other color) in the webview, prevent the indicator being shown.
This behavior is not present on 1.7.6
Sample code
var win = Ti.UI.createWindow({
title:'test'
});
var data=[{title:'open pdf!'}];
var tw = Ti.UI.createTableView({
data:data
});
tw.addEventListener('click', function(e){
var webview = Titanium.UI.createWebView({
backgroundColor:'white',
url:'http://www.appcelerator.com/assets/The_iPad_App_Wave.pdf'});
var win2 = Titanium.UI.createWindow();
win2.add(webview);
win2.open({modal:true});
});
win.add(tw);
win.open();
Error was due to order in which properties were processed. Pull pending https://github.com/appcelerator/titanium_mobile/pull/2060
Tested with 2.0.2.v20120505151714 on iPhone 4 4.3.5