[Laszlo-dev] For Review: Change 20090405-maxcarlson-q Summary: Add support for resource tiling to swf and dhtml runtimes

Max Carlson max at openlaszlo.org
Sun Apr 5 15:49:08 PDT 2009


Change 20090405-maxcarlson-q by maxcarlson at Bank on 2009-04-05 15:31:54  
PDT
     in /Users/maxcarlson/openlaszlo/trunk-clean
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Add support for resource tiling to swf and dhtml runtimes

New Features: Views now support a 'tiling' attribute.  Tiling and  
stretches can't be set at the same time.

Bugs Fixed: LPP-7714 - Components: DHTML implementation for tiling,  
LPP-7715 - Components: Tiling - bitmap fill support (partial)

Technical Reviewer: abargull
QA Reviewer: hminsky


Details: swf/LzSprite.as - Add tiling capability, set to true.  If  
tiling, update on setWidth(), setHeight() and stop().  Add  
implementation of setTiling() to be called by view.

dhtml/LzSprite.js - Add tiling capability, set to true.  Refactor img  
tag creating logic to shared method.  Add tiling setup to  
setSource().  If tiling, update on setWidth(), setHeight() and frame  
updates.  Add implementation of setTiling() to be called by view.

swf9/LzSprite.as -  Add tiling capability, set to false.

LaszloView.lzs - Call tiling setter from init method to guarantee it  
runs before resources are set.  Add warning to stretches setter and  
turn off tiling if tiling is on.  Add tiling property, setter which  
calls sprites - warn if stretches is on, and turn off when setting  
tiling == true.

Tests: See LPP-7714 for a testcase which should work in DHTML and swf.

Files:
M      WEB-INF/lps/lfc/kernel/swf/LzSprite.as
M      WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M      WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
M      WEB-INF/lps/lfc/views/LaszloView.lzs

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090405-maxcarlson-q.tar


More information about the Laszlo-dev mailing list