Remove instead of hide icon

This commit is contained in:
Artur Adib 2012-01-31 16:53:54 -05:00
parent 5ef79dca14
commit 8950d0bca9
2 changed files with 1 additions and 5 deletions

View File

@ -245,10 +245,6 @@ canvas {
background: url('images/loading-icon.gif') center no-repeat; */
}
.loadingIcon.hide {
display: none;
}
.textLayer {
position: absolute;
left: 0;

View File

@ -818,7 +818,7 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
var self = this;
stats.begin = Date.now();
this.content.startRendering(ctx, function pageViewDrawCallback(error) {
self.loadingIconDiv.classList.add('hide');
div.removeChild(self.loadingIconDiv);
if (error)
PDFView.error('An error occurred while rendering the page.', error);