Revision: 3124
          http://vexi.svn.sourceforge.net/vexi/?rev=3124&view=rev
Author:   clrg
Date:     2008-10-13 23:38:32 +0000 (Mon, 13 Oct 2008)

Log Message:
-----------
Fix align updates causing dirty screen issues

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-10-08 16:42:08 UTC 
(rev 3123)
+++ trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp  2008-10-13 23:38:32 UTC 
(rev 3124)
@@ -67,10 +67,10 @@
     //#pragma tokens SC_ width Width WIDTH
     
     //#define PUT_BOX_FIELD(NAME,VAL,CODE,FLAG)    \
-    //    if (test(FLAG)) {\
-    //        Trap _t_ = wtrap(NAME);\
-    //        boolean _b_ = prePutTriggerTrapsAndCatchExceptions(_t_, NAME, 
VAL);\
-    //        CODE;\
+    //  if (test(FLAG)) {\
+    //      Trap _t_ = wtrap(NAME);\
+    //      boolean _b_ = prePutTriggerTrapsAndCatchExceptions(_t_, NAME, 
VAL);\
+    //      CODE;\
     //      postPutTriggerTrapsAndCatchExceptions(_t_, NAME, _b_);\
     //  } else {CODE;}
     
@@ -1296,6 +1296,7 @@
         case "distanceto":  throw new JSExn("Attempt to put to read-only 
'"+JSU.toString(name)+"'");
         case "align":
             // TODO optimize; check if align does not change
+            dirty();
             setAlign(value == null ? "center" : JSU.toString(value));
             setParentPlace();
             dirty();
@@ -1515,6 +1516,7 @@
         // remove from old parent
         if (oldparent != null) {
             if (newparent != null) {
+//             if (wasvisible) dirty();
                 // invoke null put to Children trap on oldparent
                 oldparent.put(oldparent.indexNode(this), null, false, false);
             } else {
@@ -1663,4 +1665,4 @@
     // JSArrayLike
     public JS[] toArray() throws JSExn { throw new JSExn("Cannot convert box 
to an array"); }
     public int length() throws JSExn{ return 
JSU.toInt(getAndTriggerTraps(SC_numchildren)); }
-}
\ No newline at end of file
+}


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to