[Laszlo-checkins] r11262 - in openlaszlo/trunk: WEB-INF/lps/lfc/kernel/swf9 examples/components lps/components/lz
bargull@openlaszlo.org
bargull at openlaszlo.org
Sun Sep 28 04:29:23 PDT 2008
Author: bargull
Date: 2008-09-28 04:29:13 -0700 (Sun, 28 Sep 2008)
New Revision: 11262
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
openlaszlo/trunk/examples/components/grid_example.lzx
openlaszlo/trunk/lps/components/lz/gridtext.lzx
Log:
Change 20080927-bargull-SVC by bargull at dell--p4--2-53 on 2008-09-27 15:37:52
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix swf9 sprite clickability
New Features:
Bugs Fixed: LPP-7079, LPP-7058, LPP-6943
Technical Reviewer: hminsky
QA Reviewer: mamye
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
the clickbutton needs to be placed behind all child-sprites (LPP-7079),
so it's now placed at the 0th position.
grid_example.lzx:
- use short form for init-handler (not a required change)
- use strings when assigning values to workdef/homedef (avoids swf8 debug-info)
gridtext.lzx:
- change attribute type to "node" (not a required change)
Tests:
testcase at LPP-7079
grid example (LPP-7058, LPP-6943)
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as 2008-09-28 11:26:26 UTC (rev 11261)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as 2008-09-28 11:29:13 UTC (rev 11262)
@@ -611,7 +611,7 @@
// explain how to add a sprite to the tab order using tabEnabled property.
if (cb == null) {
this.clickbutton = cb = new SimpleButton();
- addChild(cb);
+ addChildAt(cb, 0);
}
cb.useHandCursor = (showhandcursor == null) ? LzMouseKernel.showhandcursor : showhandcursor;
cb.tabEnabled = false;
Modified: openlaszlo/trunk/examples/components/grid_example.lzx
===================================================================
--- openlaszlo/trunk/examples/components/grid_example.lzx 2008-09-28 11:26:26 UTC (rev 11261)
+++ openlaszlo/trunk/examples/components/grid_example.lzx 2008-09-28 11:29:13 UTC (rev 11262)
@@ -41,17 +41,15 @@
<handler name="ondatasel" method="checkDataSel"/>
- <handler name="oninit">
- this.checkDataSel();
- </handler>
+ <handler name="oninit" method="checkDataSel"/>
<handler name="onselect">
if ( this.value == 1 ){
- this.workdef = 0;
- this.homedef = 1;
+ this.workdef = '0';
+ this.homedef = '1';
} else if ( this.value == 2 ){
- this.workdef = 1;
- this.homedef = 0;
+ this.workdef = '1';
+ this.homedef = '0';
}
this.datapath.updateData();
</handler>
Modified: openlaszlo/trunk/lps/components/lz/gridtext.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/gridtext.lzx 2008-09-28 11:26:26 UTC (rev 11261)
+++ openlaszlo/trunk/lps/components/lz/gridtext.lzx 2008-09-28 11:29:13 UTC (rev 11262)
@@ -49,7 +49,7 @@
<attribute name="focusable" value="${!editing &&
parent.editable}"/>
- <attribute name="editbox" value="null"/>
+ <attribute name="editbox" value="null" type="node" />
<method name="init">
if ( parent.editable ){
More information about the Laszlo-checkins
mailing list