Remove instead of hide icon
This commit is contained in:
parent
5ef79dca14
commit
8950d0bca9
@ -245,10 +245,6 @@ canvas {
|
||||
background: url('images/loading-icon.gif') center no-repeat; */
|
||||
}
|
||||
|
||||
.loadingIcon.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.textLayer {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user