Commit 8198d498 authored by Phil Hughes's avatar Phil Hughes

Places dropdown at cursor position

parent 4a797620
...@@ -88,7 +88,8 @@ ...@@ -88,7 +88,8 @@
this.font = window.getComputedStyle(this.filteredSearchInput).font; this.font = window.getComputedStyle(this.filteredSearchInput).font;
} }
const inputText = gl.DropdownUtils.getSearchInput(this.filteredSearchInput).trim(); const input = this.filteredSearchInput;
const inputText = input.value.slice(0, input.selectionStart);
const filterIconPadding = 27; const filterIconPadding = 27;
const offset = gl.text.getTextWidth(inputText, this.font) + filterIconPadding; const offset = gl.text.getTextWidth(inputText, this.font) + filterIconPadding;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment