resolve darcs stupidity
[org.ibex.core.git] / src / org / ibex / Box.java
index be1c4f4..c898d8e 100644 (file)
@@ -143,8 +143,8 @@ public final class Box extends JSScope implements Scheduler.Task {
     public void perform() throws JSExn {
         if (texture == null) { Log.warn(Box.class, "perform() called with null texture"); return; }
         if (texture.isLoaded) {
-            setMinWidth(max(texture.width, maxwidth));
-            setMinHeight(max(texture.height, maxheight));
+            setWidth(max(texture.width, maxwidth), maxwidth); 
+            setHeight(max(texture.height, maxheight), maxheight); 
             DIRTY; }
         else { JS res = texture.stream; texture = null; throw new JSExn("image not found: "+res.unclone()); }
     }