Browse Source

Merge pull request #618 from alexandr-bbm/master

fixed lines according to issue
Inuyaksa 8 years ago
parent
commit
050c1716bf
2 changed files with 3 additions and 122 deletions
  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,

File diff suppressed because it is too large
+ 0 - 120
jquery.nicescroll.min.js


Some files were not shown because too many files changed in this diff