Skip to main content

Bug Tracker

Side navigation

#6540 closed bug (invalid)

Opened May 07, 2010 04:50AM UTC

Closed December 04, 2010 08:05AM UTC

.offset() is not consistent between browsers

Reported by: Sayan.Chaliha Owned by: Sayan.Chaliha
Priority: undecided Milestone:
Component: manipulation Version: 1.4.2
Keywords: offset Cc:
Blocked by: Blocking:

The offsets returned by jQuery.fn.offset() isn't relatively same across browsers.

For instance, code that creates a DIV below another element in Mozilla-based browsers would create a DIV above the other element in Webkit-based browsers.


var offset = $('#div1').offset(); += $('#div1').outerHeight();

This causes div#div2 to be placed below div#div1 in Firefox

In Chrome and Safari, div#div2 is placed above div#div1


Attachments (0)
Change History (3)

Changed November 12, 2010 02:40AM UTC by snover comment:1

milestone: 1.4.3

Resetting milestone to future.

Changed November 19, 2010 10:05PM UTC by snover comment:2

owner: → Sayan.Chaliha
priority: → undecided
status: newpending

Please provide a test case demonstrating this issue on jsFiddle.

Changed December 04, 2010 08:05AM UTC by trac-o-bot comment:3

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!