FooSoft / yomichan

Japanese pop-up dictionary extension for Chrome and Firefox.
https://foosoft.net/projects/yomichan
Other
1.06k stars 217 forks source link

Popup positioning improvements #2135

Closed toasted-nutbread closed 2 years ago

toasted-nutbread commented 2 years ago

This change does some refactoring to popup positioning and updates how the popup is positioned for source content which spans multiple DOMRects.

The updated algorithm is now:

Resolves #2124.