mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Let the pdfjs deal with new render request
This commit is contained in:
parent
2968b058cf
commit
a7aee1d3d4
@ -187,14 +187,11 @@ class pdf_player extends HTMLElement {
|
|||||||
let viewport = page.getViewport({scale:self.__pdfViewState.zoom});
|
let viewport = page.getViewport({scale:self.__pdfViewState.zoom});
|
||||||
self._canvas.width = viewport.width;
|
self._canvas.width = viewport.width;
|
||||||
self._canvas.height = viewport.height;
|
self._canvas.height = viewport.height;
|
||||||
// don't ty to render if page is under proccess
|
|
||||||
if (typeof page.intentStates.display == 'undefined')
|
|
||||||
{
|
|
||||||
page.render({
|
page.render({
|
||||||
canvasContext: canvasContext,
|
canvasContext: canvasContext,
|
||||||
viewport: viewport
|
viewport: viewport
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user