Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#8316 closed bug (fixed)

.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:


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


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

Change History (6)

comment:1 Changed 12 years ago by jitter

Component: unfiledoffset
Priority: undecidedhigh
Status: newopen

test case replicated on jsfiddle.

comment:2 Changed 12 years ago by murz

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

comment:3 Changed 12 years ago by ajpiano

Milestone: 1.next1.5.2
Priority: highblocker

comment:4 Changed 12 years ago by john

Owner: set to john
Status: openassigned

comment:5 Changed 12 years ago by Michael Murray

Resolution: fixed
Status: assignedclosed

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

Changeset: e8f4629b924cae0b0f1847d2368031f06bc08149

comment:6 Changed 11 years ago by anonymous

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

Note: See TracTickets for help on using tickets.