[Laszlo-checkins] r13859 - openlaszlo/trunk/lps/components/utils/states

bargull@openlaszlo.org bargull at openlaszlo.org
Mon May 11 05:58:44 PDT 2009


Author: bargull
Date: 2009-05-11 05:58:42 -0700 (Mon, 11 May 2009)
New Revision: 13859

Modified:
   openlaszlo/trunk/lps/components/utils/states/resizestatemin.lzx
Log:
Change 20090511-bargull-Yq7 by bargull at dell--p4--2-53 on 2009-05-11 00:08:07
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: constraint returns NaN in resizestatemin

New Features:

Bugs Fixed: LPP-8088 (DHTML: many warnings from applyConstraintMethod())

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

Documentation:

Release Notes:

Details:
Default resize_min_width(height) to zero because if width/height gets set to NaN all sorts of bad side effects were triggered. 
For example using lps/components/incubator/test/opttree/test.lzx:
If you click on the resizer, images are reloaded from the server and the scrollbar looks broken. This doesn't happen any longer after applying the patch.

    

Tests:



Modified: openlaszlo/trunk/lps/components/utils/states/resizestatemin.lzx
===================================================================
--- openlaszlo/trunk/lps/components/utils/states/resizestatemin.lzx	2009-05-11 12:56:55 UTC (rev 13858)
+++ openlaszlo/trunk/lps/components/utils/states/resizestatemin.lzx	2009-05-11 12:58:42 UTC (rev 13859)
@@ -9,11 +9,11 @@
 
         <!--- @keywords private -->
         <attribute name="width"
-                    value="${Math.max((this.immediateparent.getMouse( 'x' )- __resize_xroffset), resize_min_width)}" />
+                    value="${Math.max((this.immediateparent.getMouse( 'x' )- __resize_xroffset), resize_min_width || 0)}" />
 
         <!--- @keywords private -->
         <attribute name="height"
-                    value="${Math.max((this.immediateparent.getMouse( 'y' )- __resize_yroffset), resize_min_height)}" />
+                    value="${Math.max((this.immediateparent.getMouse( 'y' )- __resize_yroffset), resize_min_height || 0)}" />
         <doc>
           <tag name="shortdesc"><text>Standard resizing behavior with a minimum width and height.</text></tag>
           <text>
@@ -46,7 +46,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@                                                         -->



More information about the Laszlo-checkins mailing list