Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6540 closed bug (invalid)

.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:

Description

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.

Example:

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

offset.top += $('#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

$('#div2').offset(offset);

Change History (3)

comment:1 Changed 13 years ago by snover

Milestone: 1.4.3

Resetting milestone to future.

comment:2 Changed 13 years ago by snover

Owner: set to Sayan.Chaliha
Priority: undecided
Status: newpending

Please provide a test case demonstrating this issue on jsFiddle.

comment:3 Changed 13 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.