Bug Tracker

Modify

Ticket #6540 (closed bug: invalid)

Opened 3 years ago

Last modified 2 years ago

.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:1 Changed 3 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

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.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.