This patch solves all the problems for Firefox 2.0.
For IE7 doesn't fully work, it needs some adjustment.  :-(

http://www.nabble.com/file/p12649343/Popup.js.patch Popup.js.patch 


dperez wrote:
> 
> Thanks Fabian,
> 
> Positioning is solved. The problem is adjusting the position for avoiding
> the popup getting out of the screen.
> 
>   menu.positionRelativeTo(element) do work, but I have to deactivate
> restrictToPageOnOpen.  If I click near the bottom or right edge of the
> screen, the menu is partially visible.
> 
> This also works for positioning:
> 
> event = new qx.event.type.MouseEvent('click', event||window.event);
> men.setLocation(event.getPageX(), event.getPageY());
> 
> 
> Fabian Jakobs-2 wrote:
>> 
>> 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
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Possible-bug-for-popup-positioning-tf4377559.html#a12649343
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

Reply via email to