[Laszlo-dev] For Review: Change 20090407-hqm-h Summary: width="0" no longer makes image invisible

Henry Minsky henry.minsky at gmail.com
Tue Apr 7 06:55:44 PDT 2009


Change 20090407-hqm-h by hqm at badtzmaru.home on 2009-04-07 09:12:54 EDT
     in /Users/hqm/openlaszlo/trunk7
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: width="0" no longer makes image invisible

New Features:

Bugs Fixed: LPP-7936

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

Documentation:

Release Notes:

Details:

+ swf9, make sure to set scaleX,scaleY to zero if there is a width
specified, even if it's zero. The "if" clause was getting faked out
because "if (lzwidth && ...)" evals to false if lzwidth == 0.

+ swf8, allow the sprite's movieclip _xscale to go to zero, so a
resource can become invisible.

But needed to add a special case to measure resource width and height
when _xscale == 0, in updateResourceSize(), due to calculating it from
the sprite movieclip's _width and _xscale


Tests:

+ test case from bug report, resource should be invisible (swf8, swf9)

+ test case from LPP-6656 still works; stretched resource in  
resizelayout visible and proper width (swf8, swf9)



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

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090407-hqm-h.tar


More information about the Laszlo-dev mailing list