Cool. I'll take a look at this soon. We might also want to make .position()
a setter at the same time. I've gone ahead and added it to the list of
potential features for 1.4. http://docs.jquery.com/JQuery_1.4_Roadmap#Offset
--
Brandon Aaron

On Fri, Mar 20, 2009 at 6:49 PM, DanB <givedanmo...@gmail.com> wrote:

>
> Currently you can't set the offset of jquery by passing in an object
> with left and top values.  Some people set left and top with $(el).css
> ({left:px, top:px}, but that will not work if el is inside an element
> with position relative, because the left and top will be relative to
> that parent instead of the window.  I created a plugin that keeps the
> getting of the offset intact, but also adds the ability to set the
> offset relative to the window - regardless of the positioning of
> parents.  I think this should be added to the next release.
>
> http://plugins.jquery.com/project/setOffset
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to