Brandon,

>Yeah I think I understand what you are saying but this has absolutely
>nothing to do with the offset method  or the dimensions plugin and
>everything to do with positioning and css. You could however clone the
>element, append to the body, set position absolute and top and left
>values to the element you cloned. That seems like it would get the
>desired effect. That is unless I'm not understanding! :)
>
>The offset method deals only with getting the offset of the element
>from the top left of the document.

I never said it was a problem--just that the dimensions plug-in lacked
anything for calculating this relative positioning issue. In my case, I
could clone the element. I was moving the location of a textarea element and
needed the cursor to stay put as well as keep it's tab index--so I had to
actually manipulate textarea element itself.

I was just saying it would have been nice if there was a built-in function
for calculating relative parent offsets. :)

-Dan

Reply via email to