fix #2522 Popup position is off when gutter isn't shown

This commit is contained in:
nightwing 2015-05-31 16:48:35 +04:00
commit 446e3e1bf9
2 changed files with 2 additions and 2 deletions

View file

@ -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) {