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);
|
var list = editor_blockly.getAutoCompletions(value);
|
||||||
awesomplete.list = list;
|
awesomplete.list = list;
|
||||||
var coordinates = getCaretCoordinates(htmlInput, htmlInput.selectionStart, {debug: true});
|
awesomplete.ul.style.marginLeft = getCaretCoordinates(htmlInput, htmlInput.selectionStart).left -
|
||||||
// console.log(coordinates);
|
|
||||||
awesomplete.ul.style.marginLeft = coordinates.left -
|
|
||||||
htmlInput.scrollLeft - 20 + "px";
|
htmlInput.scrollLeft - 20 + "px";
|
||||||
awesomplete.evaluate();
|
awesomplete.evaluate();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user