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; */
|
background: url('images/loading-icon.gif') center no-repeat; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.loadingIcon.hide {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.textLayer {
|
.textLayer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
|
@ -818,7 +818,7 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
|
||||||
var self = this;
|
var self = this;
|
||||||
stats.begin = Date.now();
|
stats.begin = Date.now();
|
||||||
this.content.startRendering(ctx, function pageViewDrawCallback(error) {
|
this.content.startRendering(ctx, function pageViewDrawCallback(error) {
|
||||||
self.loadingIconDiv.classList.add('hide');
|
div.removeChild(self.loadingIconDiv);
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
PDFView.error('An error occurred while rendering the page.', error);
|
PDFView.error('An error occurred while rendering the page.', error);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue