Skip to content

Commit

Permalink
Merge pull request #544 from abhi05b/patch-1
Browse files Browse the repository at this point in the history
Fixing nicescroll visibility inside Modal
  • Loading branch information
inuyaksa committed Nov 17, 2015
2 parents 713500d + c4b3f68 commit e187fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.nicescroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@
self.observerbody = new ClsMutationObserver(function(mutations) {
mutations.forEach(function(mut){
if (mut.type=="attributes") {
return ($("body").hasClass("modal-open")) ? self.hide() : self.show(); // Support for Bootstrap modal
return ($("body").hasClass("modal-open") && !$.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);
Expand Down

0 comments on commit e187fb6

Please sign in to comment.