Author: bargull
Date: 2007-08-28 14:36:15 -0700 (Tue, 28 Aug 2007)
New Revision: 6270

Modified:
   openlaszlo/branches/wafflecone/lps/components/base/basefocusview.lzx
Log:
Change 20070825-bargull-6 by [EMAIL PROTECTED] on 2007-08-25 16:48:55
    in /home/Admin/src/svn/openlaszlo/branches/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: 
Fixed tracking in basefocusview

New Features:

Bugs Fixed:
LPP-4553 "basefocusview warnings when canvas size changes"

Technical Reviewer: max
QA Reviewer: ben
Doc Reviewer: (pending)

Documentation:
The whole width/height tracking was broken for basefocusview, this is now fixed.

Release Notes:

Details:
    

Tests:
Two testcases can be found at the bugreport (LPP-4553)



Modified: openlaszlo/branches/wafflecone/lps/components/base/basefocusview.lzx
===================================================================
--- openlaszlo/branches/wafflecone/lps/components/base/basefocusview.lzx        
2007-08-28 19:29:32 UTC (rev 6269)
+++ openlaszlo/branches/wafflecone/lps/components/base/basefocusview.lzx        
2007-08-28 21:36:15 UTC (rev 6270)
@@ -187,7 +187,20 @@
             } else {
                 this._xydelegate.unregisterAll();
             }
-            if ( this.target == null ) return;
+            
+            if ( !this._widthdel ) {
+                this._widthdel = new LzDelegate(this, "followWidth");
+            } else {
+                this._widthdel.unregisterAll();
+            }
+            
+            if ( !this._heightdel ) {
+                this._heightdel = new LzDelegate(this, "followHeight");
+            } else {
+                this._heightdel.unregisterAll();
+            }
+            
+            if (this.target == null) return;
 
             // make sure that this focusoverlay  is aware
             // when the target or any of its parents move.
@@ -200,12 +213,9 @@
                 i++;
             }
 
-             if ( !this._widthdel ) {
-                 this._widthdel = new LzDelegate(this, "followWidth", 
canvas,'onwidth');
-             }
-             if ( !this._heightdel ) {
-                 this._heightdel = new LzDelegate(this, "followHeight", 
canvas,'onheight');
-             }
+             this._widthdel.register(newtarget, 'onwidth');
+             this._heightdel.register(newtarget, 'onheight');
+
              followXY();
              followWidth();
              followHeight();


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

Reply via email to