fix scroll cursor into view if the editor is not visible
This commit is contained in:
parent
0cbaa4cbd9
commit
e99e4cc632
1 changed files with 4 additions and 0 deletions
|
|
@ -582,6 +582,10 @@ var VirtualRenderer = function(container, theme) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.scrollCursorIntoView = function() {
|
this.scrollCursorIntoView = function() {
|
||||||
|
// the editor is not visible
|
||||||
|
if (this.$size.scrollerHeight === 0)
|
||||||
|
return;
|
||||||
|
|
||||||
var pos = this.$cursorLayer.getPixelPosition();
|
var pos = this.$cursorLayer.getPixelPosition();
|
||||||
|
|
||||||
var left = pos.left + this.$padding;
|
var left = pos.left + this.$padding;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue