setShowGutter must update width

This commit is contained in:
nightwing 2011-01-26 19:13:54 +08:00 committed by Fabian Jakobs
commit 125539052a

View file

@ -260,9 +260,14 @@ var VirtualRenderer = function(container, theme) {
};
this.setShowGutter = function(show){
if(this.showGutter === show)
return;
this.$gutter.style.display = show ? "block" : "none";
this.showGutter = show;
// set fake width to make onResize work
this.$size.width = -1
this.onResize();
this.$gutterLayer.update(this.layerConfig)
}
this.$updatePrintMargin = function() {