Fix scrollbar in Safari 4

This commit is contained in:
Joe Cheng 2011-02-17 10:11:00 +08:00 • committed by Fabian Jakobs
commit 4d8e4b29ab

View file

@ -52,7 +52,7 @@ var ScrollBar = function(parent) {
parent.appendChild(this.element);
this.width = dom.scrollbarWidth();
this.element.style.width = this.width;
this.element.style.width = this.width + "px";
event.addListener(this.element, "scroll", this.onScroll.bind(this));
};