Ticket #2247 (closed bug: fixed)
getMousePosition off due to borders and relative/absolute positioning
| Reported by: | chrelad@… | Owned by: | euzuro |
|---|---|---|---|
| Priority: | trivial | Milestone: | 2.12 Release |
| Component: | Events | Version: | 2.8 |
| Keywords: | mouse position getMousePosition offset click coordinates border relative position | Cc: | |
| State: | Review |
Description
I've managed to create a test case reproducing a bug I found while developing with OpenLayers. The test case shows that when the map div is contained by a node with both a border and position relative set, getMousePosition ends up with an incorrect offset.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

