This commit is contained in:
Fabian Jakobs 2011-12-12 12:52:24 +01:00
commit fcf3b7928f
2 changed files with 2 additions and 3 deletions

View file

@ -62,7 +62,7 @@ var Gutter = function(parentEl) {
if (!this.$decorations[row])
this.$decorations[row] = "";
this.$decorations[row] += " ace_" + className;
}
};
this.removeGutterDecoration = function(row, className){
this.$decorations[row] = this.$decorations[row].replace(" ace_" + className, "");

View file

@ -65,7 +65,7 @@ var VirtualRenderer = function(container, theme) {
// Chrome has some strange rendering issues if this is not done async
setTimeout(function() {
dom.addCssClass(container, "ace_editor");
}, 0)
}, 0);
this.setTheme(theme);
@ -493,7 +493,6 @@ var VirtualRenderer = function(container, theme) {
var minHeight = this.$size.scrollerHeight + this.lineHeight;
var longestLine = this.$getLongestLine();
var widthChanged = this.layerConfig.width != longestLine;
var horizScroll = this.$horizScrollAlwaysVisible || this.$size.scrollerWidth - longestLine < 0;
var horizScrollChanged = this.$horizScroll !== horizScroll;