[ this.sbup, this.sbdown ].invoke('observe', 'mousedown', this._arrowClick.bindAsEventListener(this));
}
+ if (Prototype.Browser.IE) {
+ [ this.track, this.sbup ].invoke('makePositioned');
+ }
+
this.sbdownsize = this.sbupsize = this.value = 0;
this.active = this.dragging = false;
_initScroll: function()
{
if (this.init) {
- return false;
+ return;
}
this.init = true;
this.track.show();
this.sbdownsize = this.sbdown.offsetHeight;
}
this._updateHandleLength();
- return true;
},
_startDrag: function(e)
if (!this.needScroll()) {
this.value = 0;
this.track.hide();
- } else if (!this._initScroll()) {
+ } else {
this.track.show();
this._updateHandleLength();
}
if (this.scrollbar.needScroll()) {
switch (this.vp.pane_mode) {
case 'horiz':
- this.scrollDiv.setStyle({ float: 'left', position: 'static' }).setStyle({ marginLeft: '-' + this.scrollDiv.getWidth() + 'px' });
+ this.scrollDiv.setStyle({ float: 'left' }).setStyle({ marginLeft: '-' + this.scrollDiv.getWidth() + 'px' });
break;
case 'vert':
- this.scrollDiv.setStyle({ float: 'left', marginLeft: 0, position: 'static' });
+ this.scrollDiv.setStyle({ float: 'left', marginLeft: 0 });
if (!this.vertscroll) {
c.setStyle({ width: (c.clientWidth - this.scrollDiv.getWidth()) + 'px' });
}
break;
default:
- this.scrollDiv.setStyle({ float: 'none', position: 'absolute', right: 0, top: 0 }).setStyle({ marginLeft: '-' + this.scrollDiv.getWidth() + 'px' });
+ this.scrollDiv.setStyle({ float: 'none' }).setStyle({ marginLeft: '-' + this.scrollDiv.getWidth() + 'px' });
break;
}
this.scrollDiv.setStyle({ height: c.clientHeight + 'px' });
- } else if ((this.vp.pane_mode =='vert') && this.vertscroll) {
+ } else if ((this.vp.pane_mode == 'vert') && this.vertscroll) {
c.setStyle({ width: (c.clientWidth + this.scrollDiv.getWidth()) + 'px' });
}