From 3b3195b9d40d0db7522b76abd6fce0be20a49eb8 Mon Sep 17 00:00:00 2001 From: oc Date: Thu, 4 Jul 2019 12:02:38 +0800 Subject: [PATCH] blockly auto complete --- _server/editor_blockly.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_server/editor_blockly.js b/_server/editor_blockly.js index 36a84fb3..9ac2d906 100644 --- a/_server/editor_blockly.js +++ b/_server/editor_blockly.js @@ -976,9 +976,7 @@ Blockly.FieldTextInput.prototype.showInlineEditor_ = function(quietInput) { var list = editor_blockly.getAutoCompletions(value); awesomplete.list = list; - var coordinates = getCaretCoordinates(htmlInput, htmlInput.selectionStart, {debug: true}); - // console.log(coordinates); - awesomplete.ul.style.marginLeft = coordinates.left - + awesomplete.ul.style.marginLeft = getCaretCoordinates(htmlInput, htmlInput.selectionStart).left - htmlInput.scrollLeft - 20 + "px"; awesomplete.evaluate(); }