We're building this into jQuery UI, most likely for 1.8 ( http://wiki.jqueryui.com/PositionTo ). We should figure out what parts can/should go into core and what should go into jQuery UI.
On Mar 20, 8:35 pm, Brandon Aaron <[email protected]> wrote: > 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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
