Commit 78d362af authored by Guilhelm Savin's avatar Guilhelm Savin

Fix Toolkit method computeLayout()

parent 715a0772
......@@ -1684,9 +1684,10 @@ public class Toolkit extends
stab = Math.min(stab, 1);
g.addAttributeSink(layout);
layout.addAttributeSink(g);
r.addSink(layout);
r.replay(g);
r.removeSink(layout);
layout.shake();
layout.compute();
......@@ -1694,6 +1695,8 @@ public class Toolkit extends
do
layout.compute();
while (layout.getStabilization() < stab);
layout.removeAttributeSink(g);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment