[Laszlo-checkins] r12404 - openlaszlo/trunk/lps/components/debugger

hqm@openlaszlo.org hqm at openlaszlo.org
Sat Jan 10 14:00:20 PST 2009


Author: hqm
Date: 2009-01-10 14:00:18 -0800 (Sat, 10 Jan 2009)
New Revision: 12404

Modified:
   openlaszlo/trunk/lps/components/debugger/debugger.lzx
Log:
Change 20090110-hqm-B by hqm at badtzmaru.home on 2009-01-10 16:58:51 EST
    in /Users/hqm/openlaszlo/trunk5
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary:  fix debugger x,y constraints to work with resizing

New Features:

Bugs Fixed: LPP-7602

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

Documentation:

Release Notes:

Details:
    
+ when the resizer is dragged, turn off the initial constraints on debugger window x,y position


Tests:

drag on resizer works on the debugger



Modified: openlaszlo/trunk/lps/components/debugger/debugger.lzx
===================================================================
--- openlaszlo/trunk/lps/components/debugger/debugger.lzx	2009-01-10 21:53:57 UTC (rev 12403)
+++ openlaszlo/trunk/lps/components/debugger/debugger.lzx	2009-01-10 22:00:18 UTC (rev 12404)
@@ -101,10 +101,16 @@
 -->
 <class name="LzDebugWindow" 
        font="monospace" fontsize="11" fontstyle="plain"
-       y="${canvas.height * .95 - this.height}" x="${canvas.width * .95 - this.width}"
        height="45%" width="90%"
        oninit="initEvalView()" pixellock="true">
 
+    <!-- sets the initial position of the debug window to constrain to the canvas -->
+    <state name="fit_on_canvas" applied="true">
+      <attribute name="y" value="${canvas.height * .95 - this.height}"/>
+      <attribute name="x" value="${canvas.width * .95 - this.width}"/>
+    </state>
+
+
     <!-- ATTRIBUTES -->
     <attribute name="title" value="" type="string" />
     <attribute name="closeable" value="true"/> 
@@ -554,7 +560,12 @@
     </method>
 
     <dragstate name="drag"/>
-    <resizestate name="resize"/>
+    <resizestate name="resize">
+      <!-- on resize, stop constraining position -->
+      <handler name="onapplied">
+          parent.fit_on_canvas.setAttribute('applied', false);
+     </handler>
+    </resizestate>
 
     <handler name="onremove" reference="drag" method="saveDebuggerState"/>
     <handler name="onremove" reference="resize" method="saveDebuggerState"/>



More information about the Laszlo-checkins mailing list