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:
@@ -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;
|
package com.threerings.venison;
|
||||||
|
|
||||||
@@ -566,11 +566,11 @@ public class VenisonBoard
|
|||||||
oldWidth != _width || oldHeight != _height) {
|
oldWidth != _width || oldHeight != _height) {
|
||||||
// if the dimensions changed, we need to relayout
|
// if the dimensions changed, we need to relayout
|
||||||
revalidate();
|
revalidate();
|
||||||
|
|
||||||
} else {
|
|
||||||
// otherwise just repaint
|
|
||||||
repaint();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// always repaint because revalidation doesn't always seem to
|
||||||
|
// result in a repaint
|
||||||
|
repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Test code. */
|
/** Test code. */
|
||||||
|
|||||||
Reference in New Issue
Block a user