On Aug 28, 1:59 pm, "Olivier Percebois-Garve" <[EMAIL PROTECTED]>
wrote:
> Wow your too fast guys.
> It seems that I was using offset() the wrong way.
>
>           $left = element.offset().left;
>           $top = element.offset().top;

The only problem with that is you are calling offset twice (which may
impact performance). I would do:

$offset = element.offset();
$left = $offset.left; $top = $offset.top;

Reply via email to