Skip to content

Commit

Permalink
Refine positioning of autocomplete menu on RTL wikis
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbth committed Nov 13, 2020
1 parent 4eb509d commit 6318f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tribute/TributeRange.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ class TributeRange {
}
if (this.tribute.isRtl) {
coordinates.right = (windowWidth - right) +
(windowWidth - span.getBoundingClientRect().right) + triggerSpan.offsetWidth - 1
(windowWidth - span.getBoundingClientRect().right) + triggerSpan.offsetWidth
} else {
coordinates.left = windowLeft + left + span.offsetLeft + triggerSpan.offsetWidth + 1
}
Expand Down

0 comments on commit 6318f8f

Please sign in to comment.