Fix incorrect indentation, and remove else after return, in PDFPageView_update

This commit is contained in:
Jonas Jenwald 2015-09-23 12:52:55 +02:00
parent 1ae9ba1d64
commit 5e7ce9d62d

View File

@ -178,19 +178,21 @@ var PDFPageView = (function PDFPageViewClosure() {
} }
} }
if (this.canvas && if (this.canvas) {
(PDFJS.useOnlyCssZoom || if (PDFJS.useOnlyCssZoom ||
(this.hasRestrictedScaling && isScalingRestricted))) { (this.hasRestrictedScaling && isScalingRestricted)) {
this.cssTransform(this.canvas, true); this.cssTransform(this.canvas, true);
return; return;
} else if (this.canvas && !this.zoomLayer) { }
this.zoomLayer = this.canvas.parentNode; if (!this.zoomLayer) {
this.zoomLayer.style.position = 'absolute'; this.zoomLayer = this.canvas.parentNode;
this.zoomLayer.style.position = 'absolute';
}
} }
if (this.zoomLayer) { if (this.zoomLayer) {
this.cssTransform(this.zoomLayer.firstChild); this.cssTransform(this.zoomLayer.firstChild);
} }
this.reset(/* keepZoomLayer = */ true, true); this.reset(/* keepZoomLayer = */ true, /* keepAnnotations = */ true);
}, },
/** /**