2003/12/25 08:52:13
[org.ibex.core.git] / src / org / xwt / Box.java
index 98fb49e..0e4a30b 100644 (file)
@@ -172,6 +172,8 @@ public final class Box extends JSScope implements Scheduler.Task {
 
     /** invoked when a resource needed to render ourselves finishes loading */
     public void perform() throws JSExn {
+
+        // FIXME; we can't assume that just because we were performed the image is loaded.
         // as external events have occured, check the state of box
         if (texture != null) {
            if (texture.isLoaded) { minwidth = texture.width; minheight = texture.height; }
@@ -621,7 +623,6 @@ public final class Box extends JSScope implements Scheduler.Task {
             return;
         }
         if (!(value instanceof Res)) return;
-
         texture = Picture.load((Res)value, this);
     }