Okay so I've modified the offset plugin to take an optional param
called referenceElement. If passed in, then it will be used to get the
relative offset. Now here is the situation. If the referenceElement is
a parent, then the number is positive. If the referenceElement is a
child, then the number is negative. That is unless the child is
negatively positioned above the parent.

My question is: Should the returned offset always be positive or
should it be negative if it is a child?

--
Brandon Aaron

On 10/3/06, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> On 10/3/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> > What about using 'px' as default unit? That way you could write:
> > $().top(10).left(10) - and the 'px' is added automatically. In case a
> > string is passed you would take that value as is:
> > $().top('10%').left('10%').
>
> That works for me.
>
> --
> Brandon Aaron
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to