correct width small canvas

This commit is contained in:
Andrey Kuvshinov
2020-04-29 16:34:33 +03:00
parent 9aa4358b20
commit 204a30ce34
2 changed files with 5 additions and 4 deletions

View File

@@ -129,10 +129,11 @@ function startpdfviewer(){
czoom = getzoom();
if (czoom != null)
div.style.width = czoom+"%";
if (czoom != null & czoom > 10) {
div.style.width = czoom+"%"
}
pdfjsLib.getDocument(url).promise.then(function(pdfDoc_) {
pdfDoc = pdfDoc_;