Search and Top Navigation
#6973 closed bug (notabug)
Opened February 11, 2011 05:47PM UTC
Closed February 11, 2011 06:20PM UTC
Last modified February 12, 2011 12:11AM UTC
position: issue when setting top left when div previously positioned using bottom right
Reported by: | jfremy | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.position | Version: | 1.8.9 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
JSFiddle: http://jsfiddle.net/jfremy/KG7x7/
On Chrome / Safari, if you have a position fixed div whose initial position is set using bottom right and has a preset width and height and you try to change its position using top left coordinates, the div is not correctly positioned.
Firefox and IE seem to work, but I think this is luck
The problem arises because you end up setting left, right, bottom, top, width and height css properties.
I think (but I understand that everybody might not think the same) that when using position, other "position" properties should be set to auto to avoid this kind of issue.
Maybe by setting systematically bottom and right to auto (since the position code seems to always be setting the top / left properties)
Attachments (0)
Change History (2)
Changed February 11, 2011 06:20PM UTC by comment:1
component: | ui.core → ui.position |
---|---|
resolution: | → invalid |
status: | new → closed |
Changed February 12, 2011 12:11AM UTC by comment:2
See: http://bugs.jquery.com/ticket/7701 - while it might make sense to make that modification in your own application, having that kind of "automagic" operation, to me, would make it inconsistant.
This is as designed. jQuery UI's .position() has the same result as jQuery core's .offset().