Bug Tracker

Modify

Ticket #4583 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

Offset doesn't work correctly in Opera

Reported by: m.wysocki Owned by: brandon
Priority: major Milestone: 1.3.2
Component: offset Version: 1.3.2
Keywords: offset bug opera top parent Cc:
Blocking: Blocked by:

Description

I've got table and td element inside <div>

<table>

<tbody>

<tr>

<td id="someTdId">

...

$("#someTdId").offset() return {left: good, top: bad} Offset function returns top offset of the div/table/tbody.

Bug shows up in Opera 9.27. Code works for me in FF 3.0.5 and Google chrome 1.0.154.53.

Change History

comment:1 Changed 4 years ago by m.wysocki

I'm using jQuery v1.3.2 Revision: 6246.

comment:2 Changed 4 years ago by vz1b2005

I have exactly the same problem.

In Opera 9.64 offset() works just fine.

comment:3 Changed 4 years ago by netmac

You should not use scrollTop and scrollLeft for TR and TBODY during element offset calculation (for opera 9.27).

comment:4 Changed 3 years ago by miketaylr

  • Status changed from new to closed
  • Resolution set to invalid

Can you reopen with a working testcase? Closing as invalid for now.

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.