Skip to content

Commit c91c049

Browse files
committed
further reduce width estimation (to 2/3)
1 parent 4fd78b2 commit c91c049

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/SuggestionsDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const SuggestionsDropdown: React.FunctionComponent<SuggestionsDropdownPro
6060
if (suggestionsAutoplace && left +
6161
textAreaRef.current.getBoundingClientRect().left +
6262
textAreaRef.current.ownerDocument.defaultView.pageXOffset +
63-
caret.lineHeight * 0.75 * Math.max.apply(Math, suggestions.map(x => x.preview.toString().length)) > vw)
63+
caret.lineHeight * 0.6666 * Math.max.apply(Math, suggestions.map(x => x.preview.toString().length)) > vw)
6464
style.right = textAreaRef.current.offsetWidth - caret.left;
6565
else
6666
style.left = left;

0 commit comments

Comments
 (0)