diff --git a/app/pub/scripts/anviewer.js b/app/pub/scripts/anviewer.js index 373fa13..2209340 100644 --- a/app/pub/scripts/anviewer.js +++ b/app/pub/scripts/anviewer.js @@ -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_; diff --git a/app/views/layout.phtml b/app/views/layout.phtml index 52a2fbe..ee4f62f 100644 --- a/app/views/layout.phtml +++ b/app/views/layout.phtml @@ -2,7 +2,7 @@