Hi David, > Hi, > > I have a HTML page that needs vertical scrolling. When I click some elements > in the page, a want to show a menu. That's an easy task with qooxdoo. To > position the menu near the clicked element, I use this code: > > var loc = qx.html.Location; > menu.setLocation(loc.getPageBoxLeft(element), > loc.getPageBoxTop(element)); > > > The functions getPageBoxLeft and getPageBoxTop are buggy and don't take scrolling of the body into account. I have backported Sebastian's new location code from 0.8 to the legacy_0_7 branch. instead of "qx.html.Location.getPageBoxLeft(element)" just use "qx.bom.element.Location.getLeft(element)".
In the case of the popup better use "menu.positionRelativeTo(element)", which is alreaby fixed. Best Fabian -- Fabian Jakobs JavaScript Framework Developer 1&1 Internet AG Brauerstraße 48 76135 Karlsruhe Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel