2003/12/22 02:32:03
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:43:06 +0000 (07:43 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:43:06 +0000 (07:43 +0000)
darcs-hash:20040130074306-2ba56-2162716282dcc7c34fc7af8615c3eb3531753a05.gz

src/org/xwt/Box.java

index a96383e..6b90368 100644 (file)
@@ -473,7 +473,7 @@ public final class Box extends JSScope implements Scheduler.Task {
         case "noclip": CHECKSET_FLAG(NOCLIP); if (parent == null) dirty(); else parent.dirty();
         case "visible": CHECKSET_FLAG(VISIBLE); dirty(); MARK_RESIZE; dirty();
         case "packed": CHECKSET_FLAG(PACKED); MARK_REPACK_parent;
-        case "aspect": CHECKSET_INT(aspect); DIRTY;
+        case "aspect": CHECKSET_INT(aspect); dirty();
         case "globalx": put("x", N(globalToLocalX(toInt(value))));
         case "globaly": put("y", N(globalToLocalY(toInt(value))));
         case "align": clear(ALIGNS); setAlign(value == null ? "center" : value); MARK_RESIZE;
@@ -630,6 +630,7 @@ public final class Box extends JSScope implements Scheduler.Task {
     }
 
     private static int stringToColor(String s) {
+        // FIXME support three-char strings by doubling digits
         if (s == null) return 0x00000000;
         else if (SVG.colors.get(s) != null) return 0xFF000000 | toInt(SVG.colors.get(s));
         else if (s.length() > 0 && s.charAt(0) == '#') try {