lib/modules/antiscroll.costum.js
function Antiscroll (el, opts) {
      this.el = $(el);
      this.options = opts || {};

      // CUSTOM
      // this.x = (false !== this.options.x) || this.options.forceHorizontal;
      this.x = false; // Always hide horizontal scroll
      this.y = (false !== this.options.y) || this.options.forceVertical;
      this.autoHide = false !== this.options.autoHide;
      this.padding = undefined === this.options.padding ? 2 : this.options.padding;

      this.inner = this.el.find('.antiscroll-inner');
      /* CUSTOM */
      /* Don't add space to hide scrollbar multiple times */
      if (this.inner.outerWidth() <= this.el.outerWidth()) {
        this.inner.css({
          'width':  '+=' + (this.y ? scrollbarSize() : 0)
          // 'height': '+=' + (this.x ? scrollbarSize() : 0)
        });
      }

      var cssMap = {};
      if (this.x) cssMap.width = '+=' + scrollbarSize();
      // if (this.y) cssMap.height = '+=' + scrollbarSize();
      this.inner.css(cssMap);

      this.refresh();
    }
function Antiscroll (el, opts) {
      this.el = $(el);
      this.options = opts || {};

      // CUSTOM
      // this.x = (false !== this.options.x) || this.options.forceHorizontal;
      this.x = false; // Always hide horizontal scroll
      this.y = (false !== this.options.y) || this.options.forceVertical;
      this.autoHide = false !== this.options.autoHide;
      this.padding = undefined === this.options.padding ? 2 : this.options.padding;

      this.inner = this.el.find('.antiscroll-inner');
      /* CUSTOM */
      /* Don't add space to hide scrollbar multiple times */
      if (this.inner.outerWidth() <= this.el.outerWidth()) {
        this.inner.css({
          'width':  '+=' + (this.y ? scrollbarSize() : 0)
          // 'height': '+=' + (this.x ? scrollbarSize() : 0)
        });
      }

      var cssMap = {};
      if (this.x) cssMap.width = '+=' + scrollbarSize();
      // if (this.y) cssMap.height = '+=' + scrollbarSize();
      this.inner.css(cssMap);

      this.refresh();
    }
function Antiscroll ( el , opts ) { this . el = $ ( el ) ; this . options = opts || { } ; // CUSTOM // this.x = (false !== this.options.x) || this.options.forceHorizontal; this . x = false ; // Always hide horizontal scroll this . y = ( false !== this . options . y ) || this . options . forceVertical ; this . autoHide = false !== this . options . autoHide ; this . padding = undefined === this . options . padding ? 2 : this . options . padding ; this . inner = this . el . find ( '.antiscroll-inner' ) ; /* CUSTOM */ /* Don't add space to hide scrollbar multiple times */ if ( this . inner . outerWidth ( ) <= this . el . outerWidth ( ) ) { this . inner . css ( { 'width' : '+=' + ( this . y ? scrollbarSize ( ) : 0 ) // 'height': '+=' + (this.x ? scrollbarSize() : 0) } ) ; } var cssMap = { } ; if ( this . x ) cssMap . width = '+=' + scrollbarSize ( ) ; // if (this.y) cssMap.height = '+=' + scrollbarSize(); this . inner . css ( cssMap ) ; this . refresh ( ) ; }
Antiscroll pane constructor.

@param {Element|jQuery} main pane
@parma {Object} options
@api public
Antiscroll pane constructor .