vue-pdf-eurlanda
Advanced tools
Comparing version 1.0.34 to 1.0.35
@@ -31,3 +31,3 @@ { | ||
"scripts": {}, | ||
"version": "1.0.34" | ||
"version": "1.0.35" | ||
} |
@@ -112,10 +112,10 @@ import resizeSensor from 'vue-resize-sensor' | ||
//let width = document.getElementById(this.container).offsetWidth; | ||
let docheight = document.getElementById(this.container).offsetHeight; | ||
let docWidth = document.getElementById(this.container).offsetWidth; | ||
let calHeight = docWidth * (this.pdf.getCanvas().height / this.pdf.getCanvas().width); | ||
if (calHeight > docheight) { | ||
calHeight = docheight; | ||
} | ||
//let docheight = document.getElementById(this.container).offsetHeight; | ||
//let docWidth = document.getElementById(this.container).offsetWidth; | ||
//let calHeight = docWidth * (this.pdf.getCanvas().height / this.pdf.getCanvas().width); | ||
//if (calHeight > docheight) { | ||
// calHeight = docheight; | ||
//} | ||
this.pdf.setCanvasHeight(calHeight + 'px'); | ||
this.pdf.setCanvasHeight(this.pdf.getCanvas().offsetWidth * (height / width) + 'px'); | ||
}); | ||
@@ -122,0 +122,0 @@ |
@@ -235,3 +235,2 @@ import { CMapCompressionType } from 'pdfjs-dist/lib/shared/util'; | ||
} | ||
var viewport = pdfPage.getViewport(scale, rotate); | ||
@@ -238,0 +237,0 @@ |
32455