cleanups
This commit is contained in:
parent
8bd16ba2ed
commit
fcf3b7928f
2 changed files with 2 additions and 3 deletions
|
|
@ -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, "");
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue