I've written a small method, which extends the element, it worked for my needs:
Element.addMethods({ hasPosition : function(element, x, y){ element = $(element); this.topleft = Element.cumulativeOffset(element); this.bottomright = [ this.topleft[0] + element.offsetWidth, this.topleft[1] + element.offsetHeight, ]; return (y >= this.topleft[1] && y < this.bottomright[1] && x >= this.topleft[0] && x < this.bottomright[0]); } }); -- Josi On Oct 14, 7:25 pm, White Shadow <[EMAIL PROTECTED]> wrote: > I've revising some old classes, > since Position.within is deprecated, are there any alternatives? > > whiteShadow --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---