scrollbars should start as hidden

This commit is contained in:
nightwing 2013-07-14 08:23:10 +04:00
commit 26329c2d76

View file

@ -67,8 +67,8 @@ var ScrollBarV = function(parent, renderer) {
this.width = dom.scrollbarWidth(parent.ownerDocument);
this.fullWidth = this.width;
this.element.style.width = (this.width || 15) + 5 + "px";
this.setVisible(false);
}.bind(this));
this.setVisible(false);
this.element.style.overflowY = "scroll";
event.addListener(this.element, "scroll", this.onScrollV.bind(this));
@ -93,8 +93,8 @@ var ScrollBarH = function(parent, renderer) {
this.height = renderer.$scrollbarWidth;
this.fullHeight = this.height;
this.element.style.height = (this.height || 15) + 5 + "px";
}.bind(this));
this.setVisible(false);
this.setVisible(false);
}.bind(this));
this.element.style.overflowX = "scroll";
event.addListener(this.element, "scroll", this.onScrollH.bind(this));