From a9e12f6c508810604c8c91ee15451776b08ce1a1 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 22 Apr 2019 07:41:56 -0400
Subject: [PATCH] Camera capslock fix

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