blockly auto complete
This commit is contained in:
parent
a0487a3e5c
commit
3b3195b9d4
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user