From c1af17fab4c8cd519f54f572851fc93e7ee8f84a Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Sat, 21 Jul 2018 13:13:35 -0400
Subject: [PATCH] timeline mouse over

---
 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