Skip to main content

Bug Tracker

Side navigation

#3810 closed bug (worksforme)

Opened January 08, 2009 02:05AM UTC

Closed November 19, 2010 05:52AM UTC

Last modified March 14, 2012 11:03PM UTC

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)

Attachments (0)
Change History (3)

Changed January 17, 2009 10:12PM UTC by john comment:1

milestone: 1.31.3.1
version: 1.2.21.3

Changed April 30, 2009 12:04AM UTC by whscullin comment:2

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.

Changed November 19, 2010 05:52AM UTC by snover comment:3

resolution: → worksforme
status: newclosed

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