Ticket #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: | |
| Blocking: | Blocked by: |
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
comment:2 Changed 3 years ago by snover
- Owner set to Sayan.Chaliha
- Priority set to undecided
- Status changed from new to pending
Please provide a test case demonstrating this issue on jsFiddle.
comment:3 Changed 2 years ago by trac-o-bot
- Status changed from pending to closed
- Resolution set to invalid
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!
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Resetting milestone to future.