reflow on demand when JS reads width/height
[org.ibex.core.git] / src / org / ibex / Surface.java
index d2130e3..7e23169 100644 (file)
@@ -247,8 +247,7 @@ public abstract class Surface extends PixelBuffer implements Scheduler.Task {
                 dirty(0, root.height - Main.scarImage.height, Main.scarImage.width, Main.scarImage.height);
                 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();
+            root.reflow();
             setSize(root.width, root.height);
             /*String oldcursor = cursor;
             cursor = "default";