summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/addon/scroll/simplescrollbars.js
diff options
context:
space:
mode:
authorWu Cheng-Han2015-09-24 13:57:10 +0800
committerWu Cheng-Han2015-09-24 13:57:10 +0800
commit6e40df288786f03b634ceae0d03c3b5b3ad43660 (patch)
tree31f8af6b96818b8e6ceadf53e1f8d1b59afafc96 /public/vendor/codemirror/addon/scroll/simplescrollbars.js
parent33cdec2fd4c124e181356be81a756aa6824c4ec2 (diff)
Updated codemirror to support panel and match-highlighter and revert some unnecessary changes
Diffstat (limited to '')
-rwxr-xr-xpublic/vendor/codemirror/addon/scroll/simplescrollbars.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/vendor/codemirror/addon/scroll/simplescrollbars.js b/public/vendor/codemirror/addon/scroll/simplescrollbars.js
index 4f0d0d0f..f78353a1 100755
--- a/public/vendor/codemirror/addon/scroll/simplescrollbars.js
+++ b/public/vendor/codemirror/addon/scroll/simplescrollbars.js
@@ -75,13 +75,14 @@
this.screen = clientSize;
this.total = scrollSize;
this.size = barSize;
+
var buttonSize = this.screen * (this.size / this.total);
if (buttonSize < minButtonSize) {
this.size -= minButtonSize - buttonSize;
buttonSize = minButtonSize;
}
this.inner.style[this.orientation == "horizontal" ? "width" : "height"] =
- (buttonSize - 4) + "px";
+ buttonSize + "px";
this.inner.style[this.orientation == "horizontal" ? "left" : "top"] =
this.pos * (this.size / this.total) + "px";
};