Felipe, getElementPosition works for most simple cases. In general, the more complicated the CSS is, the less reliable it is. We'd need to see a very simple test to see what the problem is, and even then, I'm not sure if we could work around it.
Beau On 1-Dec-07, at 7:11 PM, Felipe Alcacibar B wrote: > > I'm creating a dinamic menu Object with MochiKit all works fine, but > in getElementPostition i got some troubles with the position that it > gives to me. > > i'm using the follow html structure to cerate the menu. > > <ul> > <li style="float: left"> <!-- to use a horizontal menu --> > menu 1 > <div style="position:absolute"> > <ul> > <li> menu 1-1</li> > </div> > </li> > </ul> > > But getElementPosition gives me a position like the childs divs is not > hided, and like a vertical list (without the float: left option). > > it is a bug or a bad use of the function? > > i got some example in http://devel.tryer.cl/fullplanet/ab/ > menutest.php > i explain it. > > the a alerts, it is to stop a compiler to see how is the position of > the li curernt element. > the red divs, are appedned to the body with de x and y coordinates > gived from geElementPosition. > > acknowledged greetings. > > Felipe Alcacibar. > Development of systems and solutions. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
