Don't constrain tooltips to the view bounds because they won't repaint
properly and in happy virtual land it's not so necessary any longer. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2466 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SceneObjectTip.java,v 1.1 2003/04/17 19:21:16 mdb Exp $
|
// $Id: SceneObjectTip.java,v 1.2 2003/04/26 00:48:47 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.miso.client;
|
package com.threerings.miso.client;
|
||||||
|
|
||||||
@@ -57,6 +57,7 @@ public class SceneObjectTip extends LabelSausage
|
|||||||
{
|
{
|
||||||
layout(gfx, PAD);
|
layout(gfx, PAD);
|
||||||
bounds = new Rectangle(_size);
|
bounds = new Rectangle(_size);
|
||||||
|
boundary = MAX_RECT;
|
||||||
|
|
||||||
// center in the on-screen portion of the bounding box of the
|
// center in the on-screen portion of the bounding box of the
|
||||||
// object we're tipping for, but don't go above MAX_HEIGHT from
|
// object we're tipping for, but don't go above MAX_HEIGHT from
|
||||||
@@ -123,4 +124,10 @@ public class SceneObjectTip extends LabelSausage
|
|||||||
/** The maximum height above the bottom of the object bounds that we are
|
/** The maximum height above the bottom of the object bounds that we are
|
||||||
* to center ourselves. */
|
* to center ourselves. */
|
||||||
protected static final int MAX_HEIGHT = 80;
|
protected static final int MAX_HEIGHT = 80;
|
||||||
|
|
||||||
|
/** Since we don't bound our tooltips into the view, we provide this
|
||||||
|
* generous region in which they may lay themselves out. */
|
||||||
|
protected static final Rectangle MAX_RECT = new Rectangle(
|
||||||
|
Integer.MIN_VALUE/2, Integer.MIN_VALUE/2,
|
||||||
|
Integer.MAX_VALUE, Integer.MAX_VALUE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user