[Laszlo-dev] For Review: Change 20080417-hqm-I Summary: fix for swf9 view size measurement
Henry Minsky
henry.minsky at gmail.com
Thu Apr 17 14:53:14 PDT 2008
Change 20080417-hqm-I by hqm at badtzmaru.home on 2008-04-17 17:50:39 EDT
in /Users/hqm/openlaszlo/trunk5
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix for swf9 view size measurement
New Features:
Bugs Fixed:
Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
+ call owner.resourceload when sprite.setResource is called
+ measure text height properly
+ Also fix for global compiled-in data
Tests:
test/swf9/checkbox.lzx
text is centered, and bgcolor bbox matches checkbox bbox
<canvas>
<checkbox name="cb1" >checkbox cb1</checkbox>
<checkbox y="20" name="cb2" >checkbox cb2 disables cb1
<attribute name="enable" value="true"/>
<handler name="onclick">
this.enable = !this.enable;
trace('enable = ', this.enable,
'cb1.setEnabled(',this.enable,')');
canvas.cb1.setAttribute('enabled', this.enable);
setBGColor(this.enable ? 0x00ff00 : 0xff0000);
</handler>
</checkbox>
<button x="200" height="40" width="100">Cancel</button>
</canvas>
Files:
M WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
M WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
M WEB-INF/lps/server/src/org/openlaszlo/compiler/DataCompiler.java
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080417-hqm-I.tar
More information about the Laszlo-dev
mailing list