[Laszlo-checkins] r13868 - in openlaszlo/trunk/lps/components: base lz

bargull@openlaszlo.org bargull at openlaszlo.org
Mon May 11 15:33:42 PDT 2009


Author: bargull
Date: 2009-05-11 15:33:39 -0700 (Mon, 11 May 2009)
New Revision: 13868

Modified:
   openlaszlo/trunk/lps/components/base/basegrid.lzx
   openlaszlo/trunk/lps/components/lz/menu.lzx
Log:
Change 20090512-bargull-B3S by bargull at dell--p4--2-53 on 2009-05-12 00:30:09
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: small component fixes for lz.menu and lz.basegrid

New Features:

Bugs Fixed: LPP-7935 (cannot change "contentdatapath" with "setAttribute"), LPP-8133 (<menu> doesn't pass new width to its <menufloatinglist>)

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

Documentation:

Release Notes:

Details:
LPP-7935: just needed to declare setContentdatapath as the setter
LPP-8133: override setter for "width" and pass new width to the menufloatinglist, if available
    

Tests:
see bugreport



Modified: openlaszlo/trunk/lps/components/base/basegrid.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basegrid.lzx	2009-05-11 22:30:28 UTC (rev 13867)
+++ openlaszlo/trunk/lps/components/base/basegrid.lzx	2009-05-11 22:33:39 UTC (rev 13868)
@@ -10,7 +10,7 @@
         <!--- The datapath to use for the contents of the grid. By
               default, this is set to "*", meaning all of the nodes underneath
               the datacontext of the grid. -->
-        <attribute name="contentdatapath" value="*" type="string"/>
+        <attribute name="contentdatapath" value="*" type="string" setter="setContentdatapath(contentdatapath)" />
 
         <attribute name="_selector" value="null"/>
 
@@ -577,7 +577,7 @@
     </class>
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/lz/menu.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/menu.lzx	2009-05-11 22:30:28 UTC (rev 13867)
+++ openlaszlo/trunk/lps/components/lz/menu.lzx	2009-05-11 22:33:39 UTC (rev 13868)
@@ -562,6 +562,13 @@
         <!--- @keywords private -->
         <attribute name="_menuitems" value="null" />
 
+        <setter name="width" args="w"><![CDATA[
+            super.setAttribute("width", w);
+            if (this.flist != null) {
+                this.flist.setAttribute("width", w);
+            }
+        ]]></setter>
+
         <!--- @keywords private -->
         <method name="init" >
             // create a floating list. Though the parent for this floating



More information about the Laszlo-checkins mailing list