Opened 10 years ago

Closed 10 years ago

#15342 closed enhancement (invalid)

Dojo needs a more powerful equivalent to jQuery's offset() method

Reported by: Thomas Bachem Owned by: Thomas Bachem
Priority: undecided Milestone: tbd
Component: HTML Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:


Even when using dojo.position()'s includeScroll parameter, parent elements with "overflow: scroll" get simply ignored in the calculation.

This makes the use of dojo.position() for elements within scrollable containers pretty much useless.

jQuery and Mootools are able to include these containers in its offset calculation, see e.g. the getOffset() method in

Attachments (1)

position.html (664 bytes) - added by bill 10 years ago.
test case, it works for me

Download all attachments as: .zip

Change History (3)

comment:1 Changed 10 years ago by bill

Owner: changed from Eugene Lazutkin to Thomas Bachem
Status: newpending

Huh? It does account for overflow:scroll elements. I'll attach my test case. If you can produce an example that doesn't work please attach it and repopen the ticket or add a comment.

Changed 10 years ago by bill

Attachment: position.html added

test case, it works for me

comment:2 Changed 10 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.