Opened 12 years ago
Closed 12 years ago
#29954 closed defect (bug) (fixed)
Improve calculation of the caret position in editor-expand
| Reported by: | azaozz | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Editor | Version: | 4.0 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 29954.patch: