fix formatting
This commit is contained in:
parent
f8e5e467af
commit
08e721b22f
1 changed files with 8 additions and 8 deletions
|
|
@ -121,7 +121,7 @@ var VirtualRenderer = function(container, theme) {
|
||||||
this.$changedLines = {
|
this.$changedLines = {
|
||||||
firstRow: firstRow,
|
firstRow: firstRow,
|
||||||
lastRow: lastRow
|
lastRow: lastRow
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (this.$changedLines.firstRow > firstRow)
|
if (this.$changedLines.firstRow > firstRow)
|
||||||
|
|
@ -252,11 +252,11 @@ var VirtualRenderer = function(container, theme) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getFirstVisibleRow = function() {
|
this.getFirstVisibleRow = function() {
|
||||||
return (this.layerConfig || {}).firstRow || 0;
|
return (this.layerConfig || {}).firstRow || 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getLastVisibleRow = function() {
|
this.getLastVisibleRow = function() {
|
||||||
return (this.layerConfig || {}).lastRow || 0;
|
return (this.layerConfig || {}).lastRow || 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.onScroll = function(e) {
|
this.onScroll = function(e) {
|
||||||
|
|
@ -516,7 +516,7 @@ var VirtualRenderer = function(container, theme) {
|
||||||
theme = theme || "ace/theme/TextMate";
|
theme = theme || "ace/theme/TextMate";
|
||||||
require([theme], function(theme) {
|
require([theme], function(theme) {
|
||||||
afterLoad(theme);
|
afterLoad(theme);
|
||||||
})
|
});
|
||||||
} else {
|
} else {
|
||||||
afterLoad(theme);
|
afterLoad(theme);
|
||||||
}
|
}
|
||||||
|
|
@ -524,20 +524,20 @@ var VirtualRenderer = function(container, theme) {
|
||||||
var _self = this;
|
var _self = this;
|
||||||
function afterLoad(theme) {
|
function afterLoad(theme) {
|
||||||
if (_self.$theme)
|
if (_self.$theme)
|
||||||
dom.removeCssClass(_self.container, _self.$theme)
|
dom.removeCssClass(_self.container, _self.$theme);
|
||||||
|
|
||||||
_self.$theme = theme ? theme.cssClass : null;
|
_self.$theme = theme ? theme.cssClass : null;
|
||||||
|
|
||||||
if (_self.$theme)
|
if (_self.$theme)
|
||||||
dom.addCssClass(_self.container, _self.$theme)
|
dom.addCssClass(_self.container, _self.$theme);
|
||||||
|
|
||||||
// force remeasure of the gutter width
|
// force re-measure of the gutter width
|
||||||
if (_self.$size) {
|
if (_self.$size) {
|
||||||
_self.$size.width = 0;
|
_self.$size.width = 0;
|
||||||
_self.onResize();
|
_self.onResize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
}).call(VirtualRenderer.prototype);
|
}).call(VirtualRenderer.prototype);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue