fix scrollbar update
This commit is contained in:
parent
986c5eddc2
commit
00d9ab74f8
1 changed files with 2 additions and 2 deletions
|
|
@ -184,7 +184,6 @@ var VirtualRenderer = function(container, theme) {
|
||||||
|
|
||||||
this.setTokenizer = function(tokenizer) {
|
this.setTokenizer = function(tokenizer) {
|
||||||
this.$textLayer.setTokenizer(tokenizer);
|
this.$textLayer.setTokenizer(tokenizer);
|
||||||
|
|
||||||
this.$loop.schedule(this.CHANGE_TEXT);
|
this.$loop.schedule(this.CHANGE_TEXT);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -317,7 +316,8 @@ var VirtualRenderer = function(container, theme) {
|
||||||
this.$gutterLayer.update(this.layerConfig);
|
this.$gutterLayer.update(this.layerConfig);
|
||||||
}
|
}
|
||||||
else if (changes & this.CHANGE_LINES) {
|
else if (changes & this.CHANGE_LINES) {
|
||||||
this.$updateLines();
|
this.$updateLines();
|
||||||
|
this.$updateScrollBar();
|
||||||
}
|
}
|
||||||
else if (changes & this.CHANGE_SCROLL) {
|
else if (changes & this.CHANGE_SCROLL) {
|
||||||
this.$textLayer.scrollLines(this.layerConfig);
|
this.$textLayer.scrollLines(this.layerConfig);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue