We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fd78b2 commit c91c049Copy full SHA for c91c049
1 file changed
src/components/SuggestionsDropdown.tsx
@@ -60,7 +60,7 @@ export const SuggestionsDropdown: React.FunctionComponent<SuggestionsDropdownPro
60
if (suggestionsAutoplace && left +
61
textAreaRef.current.getBoundingClientRect().left +
62
textAreaRef.current.ownerDocument.defaultView.pageXOffset +
63
- caret.lineHeight * 0.75 * Math.max.apply(Math, suggestions.map(x => x.preview.toString().length)) > vw)
+ caret.lineHeight * 0.6666 * Math.max.apply(Math, suggestions.map(x => x.preview.toString().length)) > vw)
64
style.right = textAreaRef.current.offsetWidth - caret.left;
65
else
66
style.left = left;
0 commit comments