fix theme==undefined in cloud9 splitview

This commit is contained in:
nightwing 2013-03-24 12:24:40 +04:00
commit 9cc74437c2
2 changed files with 21 additions and 4 deletions

View file

@ -496,7 +496,7 @@ var VirtualRenderer = function(container, theme) {
var style = this.$printMarginEl.style;
style.left = ((this.characterWidth * this.$printMarginColumn) + this.$padding) + "px";
style.visibility = this.$showPrintMargin ? "visible" : "hidden";
if (this.session && this.session.$wrap == -1)
this.adjustWrapLimit();
};
@ -1268,6 +1268,8 @@ var VirtualRenderer = function(container, theme) {
}
function afterLoad(theme) {
if (!theme.cssClass)
return;
dom.importCssString(
theme.cssText,
theme.cssClass,
@ -1367,7 +1369,7 @@ config.defineOptions(VirtualRenderer.prototype, "renderer", {
this.$updatePrintMargin();
},
get: function() {
return this.$showPrintMargin && this.$printMarginColumn;
return this.$showPrintMargin && this.$printMarginColumn;
}
},
showGutter: {