[Laszlo-dev] For Review: Change 20090302-bargull-uSw Summary: some more tweaks for dhtml contextmenu

Philip Romanik promanik at laszlosystems.com
Mon Mar 2 12:36:36 PST 2009


Approved!

My only concern is that rebuilding dev-console on my machine made IE7 
lock up when I would right-click on the dev-console a couple of 
times. Hopefully this is just confined to my machine.


>Change 20090302-bargull-uSw by bargull at dell--p4--2-53 on 2009-03-02 
>13:37:27 in /home/Admin/src/svn/openlaszlo/trunk
>for 
><http://svn.openlaszlo.org/openlaszlo/trunk>http://svn.openlaszlo.org/openlaszlo/trunk
>
>Summary: some more tweaks for dhtml contextmenu
>
>New Features:
>
>Bugs Fixed: LPP-7661
>
>Technical Reviewer: max
>QA Reviewer: promanik
>Doc Reviewer: (pending)
>
>Documentation:
>
>Release Notes:
>
>Details:
>IE doesn't implement pageX/pageY, only clientX/clientY. In order to 
>get the proper absolute x/y-values, scrollLeft/scrollTop needs to be 
>added (see 
><http://www.quirksmode.org/js/events_properties.html#position>http://www.quirksmode.org/js/events_properties.html#position).
>And I shouldn't try to be too smart in __showContextMenu() when 
>using || for short-circuit ops: Some browsers implement both 
>pageX/pageY and clientX/clientY, so that code did effectively a binary or.
>And "owner" property is not required (needed for LPP-7823 dhtml/IE). 
>And return from loop when elem is `null` which may happen for 
>invalid positions. And finally, also check tagName, this could be 
>necessary because "owner" is no longer required.
>
>
>Tests:
>IE pageX/pageY fix:
>- recompile developer console for dhtml
>- right click on dev console in dhtml/IE, note that contextmenu 
>appears at proper position
>
>Files:
>M WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
>
>Changeset:
><http://svn.openlaszlo.org/openlaszlo/patches/20090302-bargull-uSw.tar>http://svn.openlaszlo.org/openlaszlo/patches/20090302-bargull-uSw.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090302/004e49cc/attachment.html


More information about the Laszlo-dev mailing list