fix scrollbars for osx lion
This commit is contained in:
parent
09c9aa81df
commit
2d64573437
1 changed files with 4 additions and 1 deletions
|
|
@ -51,8 +51,11 @@ var ScrollBar = function(parent) {
|
||||||
|
|
||||||
parent.appendChild(this.element);
|
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.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));
|
event.addListener(this.element, "scroll", this.onScroll.bind(this));
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue