X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FBox.java;fp=src%2Forg%2Fxwt%2FBox.java;h=b5585fc17b15bbacc906ecc4d753232f8e3804b2;hb=020decf73910d5890b0cd0e910255629c484ce52;hp=cfd638ce41131ce9f43033d7f0f2bc1d779bd477;hpb=bff5539f68541aed1701a782ff4828c339d51078;p=org.ibex.core.git 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();