Revision: 3181
          http://vexi.svn.sourceforge.net/vexi/?rev=3181&view=rev
Author:   clrg
Date:     2008-11-06 10:25:42 +0000 (Thu, 06 Nov 2008)

Log Message:
-----------
Fix #294477 - Enter/Leave/mousinside being incorrect if boxes change under 
motionless mouse cursor

Modified Paths:
--------------
    trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp

Modified: trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp
===================================================================
--- trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp  2008-11-06 03:44:55 UTC 
(rev 3180)
+++ trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp  2008-11-06 10:25:42 UTC 
(rev 3181)
@@ -374,7 +374,18 @@
         if ((flags & REFLOW) == 0 && w==width && h==height) return;
         constrain();
         tryResize(w, h);
+        boolean mouseUpdateRequired = test(PLACE)||test(PLACE_DESCENDENT);
         place();
+        if (mouseUpdateRequired) {
+            // the boxes under the mouse may have changed
+            Surface s = getSurface();
+            try {
+                tryPropagateMove(s.mousex, s.mousey);
+            } catch (JSExn e) {
+                Log.uWarn(Box.class,"Caught JS Exception while invoking 
tryPropogateMove");
+                Log.uWarn(Box.class,e);
+            }
+        }
     }
 
     /** constrain box children then establish the minimum size of a box */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to