Updated codemirror to support panel and match-highlighter and revert some unnecessary changes

This commit is contained in:
Wu Cheng-Han 2015-09-24 13:57:10 +08:00
parent 33cdec2fd4
commit 6e40df2887
8 changed files with 27 additions and 23 deletions

View file

@ -97,7 +97,7 @@
var height = Math.max(bottom - top, 3);
var elt = frag.appendChild(document.createElement("div"));
elt.style.cssText = "position: absolute; right: 0px; width: " + Math.max(cm.display.barWidth * 2, 2) + "px; top: "
elt.style.cssText = "position: absolute; right: 0px; width: " + Math.max(cm.display.barWidth * 1.5, 2) + "px; top: "
+ (top + this.buttonHeight) + "px; height: " + height + "px";
elt.className = this.options.className;
}