Try always repainting after computing our dimensions because revalidate()

doesn't seem to always result in a repaint.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@388 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-10-18 23:11:24 +00:00
parent 8f4e14d756
commit 29af0f5a94
@@ -1,5 +1,5 @@
//
// $Id: AtlantiBoard.java,v 1.12 2001/10/18 18:42:33 mdb Exp $
// $Id: AtlantiBoard.java,v 1.13 2001/10/18 23:11:24 mdb Exp $
package com.threerings.venison;
@@ -566,11 +566,11 @@ public class VenisonBoard
oldWidth != _width || oldHeight != _height) {
// if the dimensions changed, we need to relayout
revalidate();
} else {
// otherwise just repaint
repaint();
}
// always repaint because revalidation doesn't always seem to
// result in a repaint
repaint();
}
/** Test code. */