Search and Top Navigation
#5533 closed bug (wontfix)
Opened April 21, 2010 03:41PM UTC
Closed August 27, 2010 05:48PM UTC
Position fails when no top value is set for absolute in IE
Reported by: | epascarello | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.9.0 |
Component: | ui.position | Version: | 1.8 |
Keywords: | position IE8 IE7 absolute | Cc: | |
Blocked by: | Blocking: |
Description
If you have an element that is positioned absolutely and you use position. It has to have a top value set. If it is left off, IE7/8 will position the element in the wrong page location.
Test Code can be found here: http://jsbin.com/eviki4/4/
Attachments (1)
Change History (3)
Changed July 30, 2010 09:46AM UTC by comment:1
milestone: | TBD → 1.9 |
---|---|
priority: | minor → major |
Changed July 30, 2010 02:32PM UTC by comment:2
This is fixed with jQuery 1.4.3 (unreleased). The problem is actually in jQuery's offset setter. See http://dev.jquery.com/ticket/5781.
Changed August 27, 2010 05:48PM UTC by comment:3
description: | \ If you have an element that is positioned absolutely and you use position. It has to have a top value set. If it is left off, IE7/8 will position the element in the wrong page location. \ \ Test Code can be found here: http://jsbin.com/eviki4/4/ \ \ → If you have an element that is positioned absolutely and you use position. It has to have a top value set. If it is left off, IE7/8 will position the element in the wrong page location. \ \ Test Code can be found here: http://jsbin.com/eviki4/4/ \ \ |
---|---|
resolution: | → wontfix |
status: | new → closed |
The workaround for this is to just do .css({ top: 0, left: 0 }).position({...}) which is what we do in all of the jQuery UI plugins. We won't fix this in the position plugin, just use the workaround until jQuery 1.4.3 is released.