Bug Tracker

Modify

Ticket #3810 (closed bug: worksforme)

Opened 4 years ago

Last modified 14 months ago

offset function in Safari 3

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

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

comment:1 Changed 4 years ago by john

  • Version changed from 1.2.2 to 1.3
  • Milestone changed from 1.3 to 1.3.1

comment:2 Changed 4 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 3 years ago by snover

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

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

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.