fix #2522 Popup position is off when gutter isn't shown
This commit is contained in:
parent
0a3b002e28
commit
446e3e1bf9
2 changed files with 2 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ var Autocomplete = function() {
|
|||
var rect = editor.container.getBoundingClientRect();
|
||||
pos.top += rect.top - renderer.layerConfig.offset;
|
||||
pos.left += rect.left - editor.renderer.scrollLeft;
|
||||
pos.left += renderer.$gutterLayer.gutterWidth;
|
||||
pos.left += renderer.gutterWidth;
|
||||
|
||||
this.popup.show(pos, lineHeight);
|
||||
} else if (keepPopupPosition && !prefix) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue