Normand Briere
2018-10-27 d34fd9341c61d13677e029cb187d4dacff5e44ea
timeflow/vis/Mouseover.java
....@@ -45,21 +45,22 @@
4545 }
4646
4747
48
- boxW = Math.min(350, boxW);
49
- int boxH = 18 * numLines + 10;
50
- int mx = this.x + this.width + 5;
51
- int my = this.y + this.height + 35;
48
+ //boxW = Math.min(350, boxW);
49
+ int boxH = 18 * numLines; // + 10;
50
+ int mx = this.x + this.width; // + 5;
51
+ int my = this.y + this.height; // + 35;
5252
5353 // put box in a place where it does not obscure the data
5454 // or go off screen.
55
- if (my + boxH > maxH - 10)
55
+ if (my + boxH > maxH) // - 10)
5656 {
57
- my = Math.max(10, this.y - boxH - 5);
57
+// my = Math.max(10, this.y - boxH - 5);
5858 }
59
- if (mx + boxW > maxW - 10)
59
+ if (mx + boxW > maxW) // - 10)
6060 {
61
- mx = Math.max(10, this.x - boxW - 10);
61
+// mx = Math.max(10, this.x - boxW - 10);
6262 }
63
+
6364 int ty = my;
6465 g.setColor(new Color(0, 0, 0, 70));
6566 g.fillRoundRect(mx - 11, my - 16, boxW, boxH, 12, 12);