Bug Tracker

Opened 11 years ago

Closed 9 years ago

Last modified 8 years ago

#3810 closed bug (worksforme)

offset function in Safari 3

Reported by: squawk Owned by: brandon
Priority: major Milestone: 1.3.1
Component: offset Version: 1.3
Keywords: Cc:
Blocked by: Blocking:

Description

jQuery's offset function doesn't seem to work properly in Safari 3. I am using v1.2.2 but the problem persisted with v1.3 beta 2.

I am using Ariel Flesler's Scrollto Plugin which uses jQuery offset function (http://flesler.blogspot.com/2007/10/jqueryscrollto.html) In Safari 3 the browser seems to scroll too far. An example of the problem can be seen on http://krutsch.de/index.php?s=gallery&c=events)

Change History (3)

comment:1 Changed 11 years ago by john

Milestone: 1.31.3.1
Version: 1.2.21.3

comment:2 Changed 11 years ago by whscullin

This seems to relate to the use of "position: relative" with "left" or "top" set to (or inherited as) "auto". In Safari the element seems to return arbitrary values for offsetTop and offsetLeft. Using the Safari Web Inspector to disable "position: relative" on <li> for the website in the previous comment, while breaking the image number label, fixes the scrolling issue.

comment:3 Changed 9 years ago by snover

Resolution: worksforme
Status: newclosed

test case works for me in the latest version of safari 3.

Note: See TracTickets for help on using tickets.