Closed toasted-nutbread closed 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.
DOMRect
The updated algorithm is now:
sourceRect
Resolves #2124.
This change does some refactoring to popup positioning and updates how the popup is positioned for source content which spans multiple
DOMRect
s.The updated algorithm is now:
sourceRect
, calculating the popup rect for each rect rather than the full bounding rect.sourceRect
and if it has the best size, use it as the optimal position.sourceRect
s and return that position. (This is the same as the old behaviour.)Resolves #2124.