Bug Tracker

Opened 11 years ago

Closed 9 years ago

#4583 closed bug (invalid)

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:
Blocked by: Blocking:

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 (4)

comment:1 Changed 11 years ago by m.wysocki

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

comment:2 Changed 11 years ago by vz1b2005

I have exactly the same problem.

In Opera 9.64 offset() works just fine.

comment:3 Changed 10 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 9 years ago by miketaylr

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.