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

Combine "get visible client rect" functions into a common place #227

Open
peitschie opened this issue Nov 28, 2013 · 0 comments
Open

Combine "get visible client rect" functions into a common place #227

peitschie opened this issue Nov 28, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@peitschie
Copy link
Contributor

A common UI task is translating a node/offset pair into a visible client rect (aka: determine the dimensions of a visual caret if it was to be drawn). Each implementation currently has it's own set of quirks and problems, and the inconsistencies make cross-browser work difficult (e.g., issue #224).

Implementations in the existing code include:
gui.Caret.getSelectionRect
gui.Caret.verticalOverlap (used to detect white-space word wrapping)
gui.SelectionMover.getVisibleRect
gui.SelectionView.firstVisibleRect
gui.SelectionView.lastVisibleRect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant