From dce400da7c65d659129abf9bc6e8f38b360a63d2 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 26 Aug 2019 20:13:01 -0400
Subject: [PATCH] Fix camera version + VR using spacebar.
---
timeflow/vis/Mouseover.java | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/timeflow/vis/Mouseover.java b/timeflow/vis/Mouseover.java
index eb2b74b..7f58071 100755
--- a/timeflow/vis/Mouseover.java
+++ b/timeflow/vis/Mouseover.java
@@ -45,21 +45,22 @@
}
- boxW = Math.min(350, boxW);
- int boxH = 18 * numLines + 10;
- int mx = this.x + this.width + 5;
- int my = this.y + this.height + 35;
+ //boxW = Math.min(350, boxW);
+ int boxH = 18 * numLines; // + 10;
+ int mx = this.x + this.width; // + 5;
+ int my = this.y + this.height; // + 35;
// put box in a place where it does not obscure the data
// or go off screen.
- if (my + boxH > maxH - 10)
+ if (my + boxH > maxH) // - 10)
{
- my = Math.max(10, this.y - boxH - 5);
+// my = Math.max(10, this.y - boxH - 5);
}
- if (mx + boxW > maxW - 10)
+ if (mx + boxW > maxW) // - 10)
{
- mx = Math.max(10, this.x - boxW - 10);
+// mx = Math.max(10, this.x - boxW - 10);
}
+
int ty = my;
g.setColor(new Color(0, 0, 0, 70));
g.fillRoundRect(mx - 11, my - 16, boxW, boxH, 12, 12);
--
Gitblit v1.6.2