[Laszlo-checkins] r12324 - openlaszlo/trunk/lps/components/utils/layouts

max@openlaszlo.org max at openlaszlo.org
Wed Jan 7 00:43:55 PST 2009


Author: max
Date: 2009-01-07 00:43:53 -0800 (Wed, 07 Jan 2009)
New Revision: 12324

Modified:
   openlaszlo/trunk/lps/components/utils/layouts/stableborderlayout.lzx
Log:
Change 20090106-maxcarlson-H by maxcarlson at Bank.lan on 2009-01-06 21:39:17 PST
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix gaps in windows/stableborderlayout in dhtml

Bugs Fixed: LPP-7525 - DHTML: window component with broken border

Technical Reviewer: andre.bargull at udo.edu
QA Reviewer: hminsky

Details: Offset the position of the last layout to cover extra fudge factof for middle (stretched) view.

Tests: See LPP-7525, LPP-6681 in swf and dhtml



Modified: openlaszlo/trunk/lps/components/utils/layouts/stableborderlayout.lzx
===================================================================
--- openlaszlo/trunk/lps/components/utils/layouts/stableborderlayout.lzx	2009-01-07 08:27:28 UTC (rev 12323)
+++ openlaszlo/trunk/lps/components/utils/layouts/stableborderlayout.lzx	2009-01-07 08:43:53 UTC (rev 12324)
@@ -26,7 +26,8 @@
         if ( this.locked || this.subviews.length < 3 ) { return; }
         this.lock();
         var re = this.subviews[ 2 ][( this.sizeAxis )];
-        this.subviews[ 2 ].setAttribute( this.axis , newsize - re);
+        // add/subtract .1 pixel fudge factor to prevent gaps - see LPP-6681
+        this.subviews[ 2 ].setAttribute( this.axis , newsize - re - .1);
         this.subviews[ 1 ].setAttribute( this.sizeAxis , newsize - re -
                                     this.subviews[ 1 ] [ this.axis ]  + .1);
         this.locked = false;
@@ -92,7 +93,7 @@
 </class>
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006, 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