mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 07:37:57 +02:00
Cleaning up fonts when viewer is idle for some time
This commit is contained in:
parent
945e370d4f
commit
e712c4136a
9 changed files with 93 additions and 9 deletions
|
@ -67,12 +67,16 @@ var PageView = function pageView(container, id, scale,
|
|||
}
|
||||
};
|
||||
|
||||
this.reset = function pageViewReset() {
|
||||
this.resetRenderingState = function pageViewResetRenderingState() {
|
||||
if (this.renderTask) {
|
||||
this.renderTask.cancel();
|
||||
}
|
||||
this.resume = null;
|
||||
this.renderingState = RenderingStates.INITIAL;
|
||||
};
|
||||
|
||||
this.reset = function pageViewReset() {
|
||||
this.resetRenderingState();
|
||||
|
||||
div.style.width = Math.floor(this.viewport.width) + 'px';
|
||||
div.style.height = Math.floor(this.viewport.height) + 'px';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue