reset cached scroll values when resizing
this is needed since scrollTop of scrollbar element can be reset to 0 when ace is moved in the document.
This commit is contained in:
parent
1721ca8a0c
commit
7326de2a48
1 changed files with 3 additions and 0 deletions
|
|
@ -375,6 +375,9 @@ var VirtualRenderer = function(container, theme) {
|
||||||
|
|
||||||
if (this.resizing)
|
if (this.resizing)
|
||||||
this.resizing = 0;
|
this.resizing = 0;
|
||||||
|
// reset cached values on scrollbars, needs to be removed when switching to non-native scrollbars
|
||||||
|
// see https://github.com/ajaxorg/ace/issues/2195
|
||||||
|
this.scrollBarV.scrollLeft = this.scrollBarV.scrollTop = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$updateCachedSize = function(force, gutterWidth, width, height) {
|
this.$updateCachedSize = function(force, gutterWidth, width, height) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue