{
try
{
- wait(270);
+ int lw = -1, lwnow = -1;
+ for (int q = 0; q < 50; q++)
+ {
+ int w = af.alignPanel.getVisibleIdWidth(true);
+ int wnow = af.alignPanel.getIdPanel().getWidth();
+ if (lw != w || wnow != lwnow)
+ {
+ System.out.println("Width " + w + " idpanel width " + wnow);
+ }
+ else
+ {
+ wait(1);
+ }
+ lw = w;
+ lwnow = wnow;
+ }
} catch (InterruptedException e)
{
}
} while (af.getViewport().isCalcInProgress()
- || Toolkit.getDefaultToolkit().getSystemEventQueue()
- .peekEvent() != null
- || !af.alignPanel.isValid());
+ || (Toolkit.getDefaultToolkit().getSystemEventQueue()
+ .peekEvent() != null)
+ || !af.alignPanel.isValid()
+ || af.getViewport().getConsensusSeq() == null);
}
}