X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2FBox.java;h=e77935ddcafddc91824da9bb40aa6d41dce449b7;hp=f889d6e723c348c3c1c3d38e039ed56c2d10e4fa;hb=950336bc09f4d2a4057118d5e16db7bf0e7f2211;hpb=6e7dd6604dddbd7f1f7c67c120b788193f0c0dc5 diff --git a/src/org/ibex/Box.java b/src/org/ibex/Box.java index f889d6e..e77935d 100644 --- a/src/org/ibex/Box.java +++ b/src/org/ibex/Box.java @@ -294,8 +294,8 @@ public final class Box extends JSScope implements Scheduler.Task { } private static float[] coeff = null; - private static LinearProgramming.Simplex lp_h = new LinearProgramming.Simplex(50, 50, 300); - private static LinearProgramming.Simplex lp_v = new LinearProgramming.Simplex(50, 50, 300); + private static LinearProgramming.Simplex lp_h = new LinearProgramming.Simplex(100, 100, 300); + private static LinearProgramming.Simplex lp_v = new LinearProgramming.Simplex(100, 100, 300); void place_children() { int numkids = 0; for(Box c = firstPackedChild(); c != null; c = c.nextPackedSibling()) numkids++; @@ -732,6 +732,7 @@ public final class Box extends JSScope implements Scheduler.Task { fillcolor = newfillcolor; } else if(value instanceof JS) { texture = Picture.load((JS)value, this); + if (texture != null && texture.isLoaded) perform(); } else { throw new JSExn("fill must be null, a String, or a stream, not a " + value.getClass()); }