Browse Source

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

Jonas Jenwald 10 years ago
parent
commit
5e7ce9d62d
  1. 20
      web/pdf_page_view.js

20
web/pdf_page_view.js

@ -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);
}, },
/** /**

Loading…
Cancel
Save