Skip to content

Commit

Permalink
Merge pull request #25 from logicalparadox/master
Browse files Browse the repository at this point in the history
autoHide options (which defaults to true)
  • Loading branch information
rauchg committed Sep 5, 2012
2 parents 6e96266 + fb2d82c commit 2c4789c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions antiscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
*
* @api public
*/

Antiscroll.prototype.refresh = function() {
var needHScroll = this.inner.get(0).scrollWidth > this.el.width()
, needVScroll = this.inner.get(0).scrollHeight > this.el.height();
Expand All @@ -68,7 +69,6 @@
this.vertical.destroy();
this.vertical = null
}

};

/**
Expand Down Expand Up @@ -254,7 +254,8 @@
*/

Scrollbar.prototype.hide = function () {
if (this.shown) {
var autoHide = this.pane.options.autoHide;
if (autoHide !== false && this.shown) {
// check for dragging
this.el.removeClass('antiscroll-scrollbar-shown');
this.shown = false;
Expand Down

0 comments on commit 2c4789c

Please sign in to comment.