From 26329c2d763baa1807896c77728ecb580aee43fa Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 14 Jul 2013 08:23:10 +0400 Subject: [PATCH] scrollbars should start as hidden --- lib/ace/scrollbar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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));