[ this.track, this.sbup ].invoke('makePositioned');
}
- this.sbdownsize = this.sbupsize = this.value = 0;
+ this.value = 0;
this.active = this.dragging = false;
if (this.needScroll()) {
}
this.init = true;
this.track.show();
- if (this.sbup) {
- this.sbupsize = this.sbup.offsetHeight;
- this.sbdownsize = this.sbdown.offsetHeight;
- }
this._updateHandleLength();
},
this.setScrollPosition(this.getValue() - dir + (this.options.pagesize * dir));
} else {
this.curroffsets = this.track.cumulativeOffset();
- this.offsetY = e.pointerY() - hoffsets[1] + this.sbupsize;
+ this.offsetY = e.pointerY() - hoffsets[1] + this.sbup.offsetHeight;
this.active = true;
document.observe('mouseup', this.eventMU);
_updateHandleLength: function()
{
- var t = this.track.offsetHeight - this.sbupsize - this.sbdownsize;
+ var t = this.track.offsetHeight - this.sbup.offsetHeight - this.sbdown.offsetHeight;
// Minimum handle size = 10px
this.handle.setStyle({ height: Math.max(10, Math.round((this.options.pagesize / this.options.totalsize) * t)) + 'px' });