[Laszlo-dev] For Review: Change 20090226-bargull-9sU Summary: fix contextmenu (dhtml)

André Bargull andre.bargull at udo.edu
Thu Feb 26 09:30:26 PST 2009


Change 20090226-bargull-9sU by bargull at dell--p4--2-53 on 2009-02-26 15:13:35
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix contextmenu (dhtml)

New Features:

Bugs Fixed: LPP-7661

Technical Reviewer: max
QA Reviewer: promanik
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
- remove direct calls to "__showContextMenu()" from LzSprite and 
LzInputTextSprite.
- remove "__updateContextMenuDiv()" which caused the last bug reported 
by Maynard

This is the new plan:
- use "document.elementFromPoint()" to retrieve the element under the 
mouse position
- if the element has got a context-menu, just show it
- otherwise hide the element and call "document.elementFromPoint()" 
again to get the next element
- repeat these steps until the canvas sprite is reached

Also added quirk "swf8_contextmenu" to emulate swf8 context-menu behaviour.


Tests:
testcases from bugreport in IE6, FF3, Saf3

Files:
M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
M WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20090226-bargull-9sU.tar



More information about the Laszlo-dev mailing list