Opened 10 years ago
Closed 10 years ago
#29954 closed defect (bug) (fixed)
Improve calculation of the caret position in editor-expand
Reported by: | azaozz | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Editor | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
Currently we use node.getBoundingClientRect()
to get the approximate position of the caret in TinyMCE. This works well except it gets the position of the parent block. We should use range.getClientRects()
when available to get the exact position of the caret.
This will fix scrolling into view when the current block element is taller than the visible part of the editor.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
In 29954.patch: