浏览代码

Merge pull request #618 from alexandr-bbm/master

fixed lines according to issue
Inuyaksa 8 年之前
父节点
当前提交
050c1716bf
共有 2 个文件被更改,包括 3 次插入122 次删除
  1. 3 2
      jquery.nicescroll.js
  2. 0 120
      jquery.nicescroll.min.js

+ 3 - 2
jquery.nicescroll.js

@@ -1977,8 +1977,9 @@
               if (mut.type=="attributes") {
                 return ($("body").hasClass("modal-open") && $("body").hasClass("modal-dialog") && !$.contains($('.modal-dialog')[0],self.doc[0])) ? self.hide() : self.show();  // Support for Bootstrap modal; Added check if the nice scroll element is inside a modal
               }
-            });  
-            if (document.body.scrollHeight!=self.page.maxh) return self.lazyResize(30);
+            });
+            // if (document.body.scrollHeight!=self.page.maxh) return self.lazyResize(30);
+            if (self.me.clientWidth!=self.page.width || self.me.clientHeight!=self.page.height) return self.lazyResize(30);
           });
           self.observerbody.observe(document.body, {
             childList: true,

文件差异内容过多而无法显示
+ 0 - 120
jquery.nicescroll.min.js


部分文件因为文件数量过多而无法显示