.getPosition() works fine.
but $('the_id').getPosition() -< get's the position relative to the
bodylook http://mootools.net/shell/Aaqvy/1/ On Sep 16, 11:26 am, Andrea Dessì <[email protected]> wrote: > Hi all, > > I'm trying to inject a div with absolute position, > and its css properties top/left/width/heigth > are relative to another element. > > Please see this example:http://mootools.net/shell/Aaqvy/ > > Everything works well getting the positions of the image > using the .getPosition() function. > > If you remove the comment in the css > (or just go herehttp://mootools.net/shell/AJYms/, > it's the same code but with different css) > > .getPosition() seems it's returning wrong values. > > There's a way to fix it or a workaround? :) > Maybe it's my code fault. > > Thank you, > Andrea
