Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8863] iOS: webview loading spinning indicator is not shown setting a backgroundColor

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-24T15:40:36.000+0000
Affected Version/sRelease 1.8.2, Release 2.0.1
Fix Version/sRelease 2.0.2, Release 2.1.0, Sprint 2012-09 API
ComponentsiOS
LabelsSupportTeam, api, module_webview, qe-testadded, regression
ReporterFederico Casali
AssigneeVishal Duggal
Created2012-04-23T12:23:00.000+0000
Updated2012-07-13T10:13:50.000+0000

Description

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();

Comments

  1. Vishal Duggal 2012-04-24

    Error was due to order in which properties were processed. Pull pending https://github.com/appcelerator/titanium_mobile/pull/2060
  2. Natalie Huynh 2012-05-07

    Tested with 2.0.2.v20120505151714 on iPhone 4 4.3.5

JSON Source