Skip to main content

Bug Tracker

Side navigation

#8316 closed bug (fixed)

Opened February 18, 2011 01:43PM UTC

Closed March 24, 2011 11:02PM UTC

Last modified March 09, 2012 07:59AM UTC

.offset() setter works incorrectly in Webkit for fixed position elements that haven't defined left/top style properties

Reported by: scottgonzalez Owned by: john
Priority: blocker Milestone: 1.5.2
Component: offset Version: 1.5
Keywords: Cc:
Blocked by: Blocking:
Description

If an element has position: fixed, but doesn't specify a left or top style property, calling .offset({...}) does not position the element correctly.

http://jsbin.com/okube5/edit

related jQuery UI bug: http://bugs.jqueryui.com/ticket/7006

Attachments (0)
Change History (6)

Changed February 19, 2011 10:23AM UTC by jitter comment:1

component: unfiledoffset
priority: undecidedhigh
status: newopen

test case replicated on jsfiddle.

Changed February 25, 2011 01:47AM UTC by murz comment:2

I have a proposed fix for this issue. Pull request is here: https://github.com/jquery/jquery/pull/246

Changed March 21, 2011 04:47PM UTC by ajpiano comment:3

milestone: 1.next1.5.2
priority: highblocker

Changed March 24, 2011 06:12PM UTC by john comment:4

owner: → john
status: openassigned

Changed March 24, 2011 11:02PM UTC by Michael Murray comment:5

resolution: → fixed
status: assignedclosed

Offset setter for fixed position elements in Webkit. Fixes #8316.

Changeset: e8f4629b924cae0b0f1847d2368031f06bc08149

Changed October 01, 2011 07:07PM UTC by anonymous comment:6

possible related issue: getting the offset for a auto-positioned child of a fixed-position element doesn't return the correct value.