mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Remove instead of hide icon
This commit is contained in:
parent
5ef79dca14
commit
8950d0bca9
2 changed files with 1 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue