setShowGutter must update width
This commit is contained in:
parent
ffada5c7b2
commit
125539052a
1 changed files with 5 additions and 0 deletions
|
|
@ -260,9 +260,14 @@ var VirtualRenderer = function(container, theme) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setShowGutter = function(show){
|
this.setShowGutter = function(show){
|
||||||
|
if(this.showGutter === show)
|
||||||
|
return;
|
||||||
this.$gutter.style.display = show ? "block" : "none";
|
this.$gutter.style.display = show ? "block" : "none";
|
||||||
this.showGutter = show;
|
this.showGutter = show;
|
||||||
|
// set fake width to make onResize work
|
||||||
|
this.$size.width = -1
|
||||||
this.onResize();
|
this.onResize();
|
||||||
|
this.$gutterLayer.update(this.layerConfig)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$updatePrintMargin = function() {
|
this.$updatePrintMargin = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue