diff --git a/lib/ace/scrollbar.js b/lib/ace/scrollbar.js index 79af665a..77ee5564 100644 --- a/lib/ace/scrollbar.js +++ b/lib/ace/scrollbar.js @@ -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));