On 12/8/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> I wanted to use it for Plazes, but then experienced that it was quite
> slow. I wanted to use offset() to create kind of a tooltip that follows
> the mouse cursor on mouseover. It seems to me that there is too much
> going on if I need just one value (the offset from the element in its
> parent container). I ended up in extracting the parts I needed.

Perhaps I took the wrong approach to passing a reference element. I
should probably check as I'm going through and short-circuit if I find
the reference element. As it is right now I'm going through the DOM
twice. :/  I bet it would be fast enough for your use-case then.

In the name of performance ... I had originally tried to use some
built in methods in Firefox and IE but they are full of bugs harder to
solve than just parsing the DOM. :/

> I also hesitated, because the plugin overwrites height()/width() and I
> don't know in which way.

It doesn't change the way the normal height and width methods are
used. It just adds some more functionality too them. It allows you to
get the height of the document and/or the window in-conjunction with
the normal uses.

> Still its a great plugin, don't get me wrong!

:) The important thing to me is that as a community we work to make
things better. Experiences like the above would have been nice to know
earlier on ... so that I or someone else in the community could try
and make the plugin better.

--
Brandon Aaron

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to