Author: hqm
Date: 2008-03-15 13:44:04 -0700 (Sat, 15 Mar 2008)
New Revision: 8275

Modified:
   openlaszlo/trunk/lps/components/base/basewindow.lzx
Log:
Change 20080315-hqm-9 by [EMAIL PROTECTED] on 2008-03-15 16:42:53 EDT
    in /Users/hqm/openlaszlo/trunk2
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: move method outside of state in basewindow

New Features:

Bugs Fixed:

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

Documentation:

Release Notes:

Details:

Tests:

examples/components/window_example.lzx
examples/components/style_example.lzx
examples/components/grid_example.lzx



Modified: openlaszlo/trunk/lps/components/base/basewindow.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basewindow.lzx 2008-03-15 18:11:10 UTC 
(rev 8274)
+++ openlaszlo/trunk/lps/components/base/basewindow.lzx 2008-03-15 20:44:04 UTC 
(rev 8275)
@@ -1,5 +1,5 @@
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->
@@ -55,16 +55,18 @@
                        value="${setDragPos('y', this.immediateparent.getMouse( 
'y' ))}"/>
             <attribute name="x"
                        value="${setDragPos('x', this.immediateparent.getMouse( 
'x' ))}"/>
-            <method name="setDragPos" args="xory, mousepos">   <![CDATA[
-                var newpos = mousepos - this[xory + 'doffset'];
-                var diff = this[xory] - this['start' + xory];
-                if (Math.abs(diff) > 3) {
-                    setAttribute('state', 3);
-                }
-                return newpos;
-            ]]> </method>
         </state>
 
+        <method name="setDragPos" args="xory, mousepos">   <![CDATA[
+            var newpos = mousepos - this[xory + 'doffset'];
+            var diff = this[xory] - this['start' + xory];
+            if (Math.abs(diff) > 3) {
+                setAttribute('state', 3);
+            }
+            return newpos;
+            ]]>
+        </method> 
+
         <!-- resizestatemin uses minwidth and minheight attribute-->
         <resizestatemin name="_windowResize" 
onapply="parent.setAttribute('haswindowfocus', true)"/>
 


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to