We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb4137 commit e617a92Copy full SHA for e617a92
demo/complete.js
@@ -68,7 +68,10 @@
68
}
69
sel.firstChild.selected = true;
70
sel.size = Math.min(10, completions.length);
71
- editor.addWidget(cur, complete, true);
+ var pos = editor.cursorCoords();
72
+ complete.style.left = pos.x + "px";
73
+ complete.style.top = pos.yBot + "px";
74
+ document.body.appendChild(complete);
75
// Hack to hide the scrollbar.
76
if (completions.length <= 10)
77
complete.style.width = (sel.clientWidth - 1) + "px";
0 commit comments