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

hqm@openlaszlo.org hqm at openlaszlo.org
Tue Feb 10 10:04:38 PST 2009


Author: hqm
Date: 2009-02-10 10:04:36 -0800 (Tue, 10 Feb 2009)
New Revision: 12813

Modified:
   openlaszlo/trunk/lps/components/debugger/newcontent.lzx
Log:
Change 20090210-hqm-5 by hqm at badtzmaru.home on 2009-02-10 12:22:22 EST
    in /Users/hqm/openlaszlo/trunk7
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: workaround for swf8 scrolling bug

New Features:

Bugs Fixed:

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

Documentation:

Release Notes:

Details:

+ add one frame delay to debugger's scrollToEnd method, so that it
sees the correct value of maxscroll
    

Tests:

+ swf8 debugger scrolls to end of text automatically when new lines are printed
+ swf9 debugger works properly



Modified: openlaszlo/trunk/lps/components/debugger/newcontent.lzx
===================================================================
--- openlaszlo/trunk/lps/components/debugger/newcontent.lzx	2009-02-10 13:56:10 UTC (rev 12812)
+++ openlaszlo/trunk/lps/components/debugger/newcontent.lzx	2009-02-10 18:04:36 UTC (rev 12813)
@@ -378,6 +378,11 @@
      </method>
 
 <method name="scrollToEnd">
+       var enddel = new LzDelegate(this, 'scrollToEnd_int')
+        lz.Idle.callOnIdle(enddel);
+     </method>
+
+<method name="scrollToEnd_int" args="e=null">
        this.setLine(textpane.getMaxScroll());
        this.updateDisplay();
      </method>



More information about the Laszlo-checkins mailing list