[Laszlo-dev] For Review: Change 20071022-maxcarlson-k Summary: Fix context menus to work without bgcolor set

Max Carlson max at openlaszlo.org
Mon Oct 22 20:49:11 PDT 2007


Change 20071022-maxcarlson-k by maxcarlson at plastik on 2007-10-22  
20:30:29 PDT
     in /Users/maxcarlson/openlaszlo/trunk
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix context menus to work without bgcolor set

New Features:

Bugs Fixed: LPP-3852 - Context menu doesn't work properly with  
transparent views

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

Documentation:

Release Notes:

Details: Remove extra assignments of width/height/x/y.

In setBGColor() if the bgcolor was set for a context menu, reset its  
alpha to the correct value and allow opacity to be applied.  If  
clearing the bgcolor, don't remove the movieclip and don't allow  
opacity to be applied.

In setOpacity()  set the bgcolor alpha if not set by the context menu  
and overridden by the context menu.

In changeOrder() store and restore the current alpha value of the  
bgcolor movieclip.

In setContextMenu() always add a bgcolor view, and set its alpha to 0  
to hide it if no bgcolor is currently set.


Tests: See LPP-3852.

Files:
M      WEB-INF/lps/lfc/kernel/swf/LzSprite.as

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071022- 
maxcarlson-k.tar


More information about the Laszlo-dev mailing list