From 020decf73910d5890b0cd0e910255629c484ce52 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 07:43:58 +0000 Subject: [PATCH] 2003/12/31 00:51:55 darcs-hash:20040130074358-2ba56-143fb32a44f5f6f8ec962c0f7164524fa9fffe45.gz --- src/org/xwt/Box.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/org/xwt/Box.java b/src/org/xwt/Box.java index cfd638c..b5585fc 100644 --- a/src/org/xwt/Box.java +++ b/src/org/xwt/Box.java @@ -260,6 +260,12 @@ public final class Box extends JSScope implements Scheduler.Task { do { int thisx = parent == null ? 0 : this.x; int thisy = parent == null ? 0 : this.y; + + // we can't reenable this until we track + // surface-relative sizes; imagine the case of a clear + // surface with nonclear children + + /* if (texture == null && (text == null || text.equals(""))) { if ((fillcolor & 0xff000000) == 0) break; // FEATURE: more optimizations here @@ -270,6 +276,7 @@ public final class Box extends JSScope implements Scheduler.Task { break; } } + */ (parent == null ? this : parent).dirty(thisx, thisy, this.width, this.height); this.width = width; this.height = height; this.x = x; this.y = y; dirty(); -- 1.7.10.4