2002/09/23 23:17:48
[org.ibex.core.git] / src / org / xwt / SpecialBoxProperty.java
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;