mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #1035 from notmasteryet/tree-54
Fixes thumbnail's drawingRequired
This commit is contained in:
commit
5b3f5a30ab
1 changed files with 4 additions and 0 deletions
|
@ -882,6 +882,10 @@ var ThumbnailView = function thumbnailView(container, page, id, pageRatio) {
|
|||
return ctx;
|
||||
}
|
||||
|
||||
this.drawingRequired = function thumbnailViewDrawingRequired() {
|
||||
return !this.hasImage;
|
||||
};
|
||||
|
||||
this.draw = function thumbnailViewDraw(callback) {
|
||||
if (this.hasImage) {
|
||||
callback();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue