Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

TextSource* API updates #2236

Merged

Conversation

toasted-nutbread
Copy link
Collaborator

This change updates the TextSourceRange and TextSourceElement APIs to remove anything that is unused, simplify the constructors, and fix an issue related to returning stale rects.

The fixed issue would occur when scanning an element which creates an imposter (such as a textarea) and then the window is resized, which triggers a repositioning of the popup. When this repositioning occurred, it would cause the getRect/getRects function to be called, which is selecting a range which is no longer connected to the document, so the popup position would be incorrect.

@toasted-nutbread toasted-nutbread merged commit 75d3059 into FooSoft:master Sep 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant