That is because `window` doesn't have a document. window -> document -> element. Element is in the document, window isn't. (not entirely sure, but I suppose this is the problem)
What you're probably should do is: .getPosition(document) or maybe .getPosition(document.body) On Sat, Dec 11, 2010 at 1:58 AM, Sean McArthur <[email protected]>wrote: > Could you put an example of the method failing on http://jsfiddle.net ? > > > > > On Fri, Dec 10, 2010 at 4:43 PM, Chilian C. <[email protected]>wrote: > >> Element.getDocument(this) is undefined after item.getPosition(window); >> >> any help? >> >> https://gist.github.com/5407398f371f5deb850d > > >
