We need to use our view bounds here (which will be the same as the actual
bounds for non-scrolling views). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3211 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: PuzzleBoardView.java,v 1.8 2004/08/27 02:20:27 mdb Exp $
|
||||
// $Id: PuzzleBoardView.java,v 1.9 2004/11/11 23:53:51 mdb Exp $
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -324,7 +324,7 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel
|
||||
// reposition the animation as appropriate
|
||||
Rectangle abounds = new Rectangle(anim.getBounds());
|
||||
ArrayList avoidables = (ArrayList)_avoidAnims.clone();
|
||||
if (SwingUtil.positionRect(abounds, _bounds, avoidables)) {
|
||||
if (SwingUtil.positionRect(abounds, _vbounds, avoidables)) {
|
||||
anim.setLocation(abounds.x, abounds.y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user