.position() is not part of jquery, its part of some other plugin. Use .offset() instead.
May 1, 2008 - 1:20pm — andy_js
| Project: | Absolutize |
| Version: | 0.0.1-rc-1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
N/A

Comments
#1
Here, this is what I have come up with. Works great for converting inline-blocks to absolutely positioned element.
jQuery.fn.absolutize = function()
{
this.each( function()
{
$(this).css("top", $(this).offset().top);
$(this).css("left", $(this).offset().left);
});
return this.each( function()
{
$(this).css("position", "absolute");
});
}
#2
thanks
#3
Automatically closed -- issue fixed for two weeks with no activity.