From 1c1169e723987065b63aedc687c67ff0dddb47d6 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 11 Nov 2004 23:53:51 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/puzzle/client/PuzzleBoardView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/puzzle/client/PuzzleBoardView.java b/src/java/com/threerings/puzzle/client/PuzzleBoardView.java index cd210c9b4..a8a596dbd 100644 --- a/src/java/com/threerings/puzzle/client/PuzzleBoardView.java +++ b/src/java/com/threerings/puzzle/client/PuzzleBoardView.java @@ -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); }