Merge pull request #6157 from Snuffleupagus/components-update-on-setScale-and-pagesRotation

Make sure that the document is rendered on zooming and rotation for `PDFViewer` instances using the `defaultRenderingQueue`
This commit is contained in:
Tim van der Meij 2015-07-16 23:06:32 +02:00
commit b35cbaa32c

View File

@ -218,6 +218,10 @@ var PDFViewer = (function pdfViewer() {
} }
this._setScale(this._currentScaleValue, true); this._setScale(this._currentScaleValue, true);
if (this.defaultRenderingQueue) {
this.update();
}
}, },
/** /**
@ -355,7 +359,7 @@ var PDFViewer = (function pdfViewer() {
} }
}, },
_scrollUpdate: function () { _scrollUpdate: function PDFViewer_scrollUpdate() {
if (this.pagesCount === 0) { if (this.pagesCount === 0) {
return; return;
} }
@ -404,6 +408,10 @@ var PDFViewer = (function pdfViewer() {
} }
this._setScaleDispatchEvent(newScale, newValue, preset); this._setScaleDispatchEvent(newScale, newValue, preset);
if (this.defaultRenderingQueue) {
this.update();
}
}, },
_setScale: function pdfViewer_setScale(value, noScroll) { _setScale: function pdfViewer_setScale(value, noScroll) {