Skip to main content

Bug Tracker

Side navigation

#13341 closed bug (worksforme)

Opened January 29, 2013 12:01AM UTC

Closed April 30, 2014 01:14PM UTC

Inconsistent offset given

Reported by: Dave Stein <be.davestein@gmail.com> Owned by: mikesherov
Priority: high Milestone: None
Component: offset Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

http://jsfiddle.net/davestein/DxLWn/

IE, Chrome, Safari will factor in the scroll offset of body, even when overflow is hidden.

Firefox will not factor it in. Therefore in my fiddle, the offset().top will be thousands except in Firefox.

Attachments (0)
Change History (5)

Changed January 29, 2013 12:03AM UTC by Dave Stein <be.davestein@gmail.com> comment:1

I should also note this is in 1.8.3.

Changed January 30, 2013 04:49PM UTC by Dave Stein <be.davestein@gmail.com> comment:2

And just to point out cause, is that overflow: hidden after you've scrolled reports 0 on FF, but the "correct" value in the other browsers.

Changed January 30, 2013 05:06PM UTC by mikesherov comment:3

component: unfiledoffset
owner: → mikesherov
priority: undecidedhigh
status: newassigned
version: 1.9.01.8.3

Pretty sure I know what this is. I won't be able to get to it till the weekend. Someone else steal it if they want in the meantime.

Changed July 08, 2013 09:08AM UTC by anonymous comment:4

This works now in recent FF (22).

Changed April 30, 2014 01:14PM UTC by dmethvin comment:5

resolution: → worksforme
status: assignedclosed

Looks like this was a Firefox bug fixed a while back.