fix scrollbars for osx lion

This commit is contained in:
Fabian Jakobs 2011-07-21 13:18:59 +02:00
commit 2d64573437

View file

@ -51,8 +51,11 @@ var ScrollBar = function(parent) {
parent.appendChild(this.element);
// in OSX lion the scrollbars appear to have no width. In this case resize
// the to show the scrollbar but still pretend that the scrollbar has a width
// of 0px
this.width = dom.scrollbarWidth();
this.element.style.width = this.width + "px";
this.element.style.width = (this.width || 15) + "px";
event.addListener(this.element, "scroll", this.onScroll.bind(this));
};