Split out a little logic related to recentering and finishing up block resolution so it can be used reasonably by subclasses.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@753 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Mike Thomas
2009-01-15 00:49:23 +00:00
parent 45c9ca451e
commit 79c5d9c925
2 changed files with 21 additions and 7 deletions
@@ -236,7 +236,11 @@ public class VirtualMediaPanel extends MediaPanel
protected void didTick (long tickStamp)
{
super.didTick(tickStamp);
adjustBoundsCenter();
}
protected void adjustBoundsCenter ()
{
int width = getWidth(), height = getHeight();
// adjusts our view location to track any pathable we might be