Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rely on Trix for listbox position management #4

Merged
merged 1 commit into from
Aug 7, 2022

Conversation

seanpdoyle
Copy link
Contributor

Replace the bulk of the textFieldSelectionPosition() function's
implementation with a call to Trix.Editor.getClientRectAtPosition.

As a result, this change renders the textFieldMirror method and its
surrounding module unnecessary, and removes it along with its test
coverage.

Replace the bulk of the `textFieldSelectionPosition()` function's
implementation with a call to [Trix.Editor.getClientRectAtPosition][].

As a result, this change renders the `textFieldMirror` method and its
surrounding module unnecessary, and removes it along with its test
coverage.

[Trix.Editor.getClientRectAtPosition]: https://github.com/basecamp/trix/tree/1.3.1#converting-positions-to-pixel-offsets
@seanpdoyle seanpdoyle merged commit 66d4c6c into main Aug 7, 2022
@seanpdoyle seanpdoyle deleted the client-rect-at-position branch August 7, 2022 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant