dever 7 years ago
parent
commit
430c38fa60
1 changed files with 2 additions and 1 deletions
  1. 2 1
      front/static/document.js

+ 2 - 1
front/static/document.js

@@ -66,7 +66,8 @@ var Document =
             var e = $('.pf').eq(i);
             var c = e.find('.w0');
             var w = c.width();
-            if (w > self.width) {
+            var w = c.get(0).offsetWidth;
+            if (w - self.width > 10) {
                 var z = 100 - ((w - self.width)/self.zoom);
                 $(self.option.reader).css('zoom', z + '%');
                 if (self.left) {