Преглед изворни кода

stops vertical bar from flashing on load

While using loading-bar.js I noticed a bar flashing on the screen (1680x1050). I traced the issue back to a div with class nicescroll-rails and id  ascrail2000. It seems on larger monitors this doesn't get set to the proper width.
PatrickWynne пре 7 година
родитељ
комит
58d4632399
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      dist/jquery.nicescroll.js

+ 2 - 2
dist/jquery.nicescroll.js

@@ -2303,7 +2303,7 @@
       if (!self.hasborderbox) self.scrollvaluemax -= self.cursor[0].offsetHeight - self.cursor[0].clientHeight;
 
       if (self.railh) {
-        self.railh.width = (self.page.maxh > 0) ? (self.view.w - self.rail.width) : self.view.w;
+        self.railh.width = (self.page.maxh > 0) ? (self.rail.width) : self.view.w;
         self.scrollvaluemaxw = self.railh.width - self.cursorwidth - (opt.railpadding.left + opt.railpadding.right);
       }
 
@@ -3717,4 +3717,4 @@
     $.nicescroll.options = _globaloptions;
   }
 
-}));
+}));