Massive improvement in Simplex layout solver
[org.ibex.core.git] / src / org / ibex / Surface.java
index e68c392..d2130e3 100644 (file)
@@ -236,7 +236,7 @@ public abstract class Surface extends PixelBuffer implements Scheduler.Task {
         // make sure the root is properly sized
         do {
             abort = false;
-            root.repack();
+            root.pack();
             if (syncRootBoxToSurface) {
                 root.setMaxWidth(JS.N(pendingWidth));
                 root.setMaxHeight(JS.N(pendingHeight));
@@ -248,7 +248,7 @@ public abstract class Surface extends PixelBuffer implements Scheduler.Task {
                 dirty(0, root.maxheight - Main.scarImage.height, Main.scarImage.width, Main.scarImage.height);
             }
             root.resize(root.x, root.y, root.maxwidth, root.maxheight);
-            root.place_children();
+            root.place();
             setSize(root.width, root.height);
             /*String oldcursor = cursor;
             cursor = "default";