From db1a0f59c9518cfc29f6ed7c559dad596ce5e012 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 26 Apr 2003 00:48:47 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/miso/client/SceneObjectTip.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/miso/client/SceneObjectTip.java b/src/java/com/threerings/miso/client/SceneObjectTip.java index 06fb19f78..31d2804c3 100644 --- a/src/java/com/threerings/miso/client/SceneObjectTip.java +++ b/src/java/com/threerings/miso/client/SceneObjectTip.java @@ -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; @@ -57,6 +57,7 @@ public class SceneObjectTip extends LabelSausage { layout(gfx, PAD); bounds = new Rectangle(_size); + boundary = MAX_RECT; // 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 @@ -123,4 +124,10 @@ public class SceneObjectTip extends LabelSausage /** The maximum height above the bottom of the object bounds that we are * to center ourselves. */ 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); }