(I am checking in this change)
Change philip-20110616-fgI by philip@PHILIP-I7 on 2011-06-16 12:03:50
EDT
in /cygdrive/c/clients/laszlo/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: forceRedraw() method added to LzSprite.as
New Features:
Bugs Fixed: LPP-9958
Technical Reviewer: (pending)
QA Reviewer: rqin
Doc Reviewer: (pending)
Documentation:
Release Notes:
Overview:
Sprite redrawing was optimized in LzSprite.as. A dirty flag was set
rather than immediately redrawing the sprite. The redraw happens in the
Event.RENDER event. If someone writes custom Flash code that uses the
sprite, the sprite may not be redrawn yet. I added a forceRedraw()
method on the sprite to redraw the sprite and all child sprites. The
redraw only happens if the dirty flag is true.
Details:
The test case in the jira report uses the sprite directly. A new line
must be added here,
pj.addPage(_page.sprite);
The result is,
_page.sprite.forceRedraw();
pj.addPage(_page.sprite);
The output now matches the version prior to r19126 (4/29/2011)
Tests:
Test application now displays the horizontal bar correctly.
Files:
M WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/philip-20110616-fgI.tar