2002/09/23 23:17:48
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:50:31 +0000 (06:50 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:50:31 +0000 (06:50 +0000)
darcs-hash:20040130065031-2ba56-ca56528ded029770f30a4486fafa7e0e6cd2c04c.gz

CHANGES
src/org/xwt/SpecialBoxProperty.java

diff --git a/CHANGES b/CHANGES
index a40eb0a..0c098bc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
 
 15-Sep megacz XWT.java: new retheme() syntax
 
-
+23-Sep megacz SpecialBoxProperty.java: invisible now returns true if
+              any of the box's ancestors is invisible.
index f9880bf..b6d2cfc 100644 (file)
@@ -376,7 +376,10 @@ class SpecialBoxProperty {
                 } });
         
         specialBoxProperties.put("invisible", new SpecialBoxProperty() {
-                public Object get(Box b) { return b.invisible ? Boolean.TRUE : Boolean.FALSE; }
+                public Object get(Box b) {
+                    for (Box cur = b; cur != null; cur = cur.getParent()) { if (cur.invisible) return Boolean.TRUE; }
+                    return Boolean.FALSE;
+                }
                 public void put(Box b, Object value) {
                     boolean newinvisible = stob(value);
                     if (newinvisible == b.invisible) return;