|
70 | 70 | border: 2px solid; |
71 | 71 | border-radius: 5px; |
72 | 72 | padding: 5px; |
73 | | - white-space: nowrap; |
74 | 73 | font-size: 0.875rem; |
75 | 74 | background-color: var(--background-color); |
76 | 75 | color: var(--text-color); |
@@ -4781,7 +4780,6 @@ main { |
4781 | 4780 | border: 2px solid; |
4782 | 4781 | border-radius: 5px; |
4783 | 4782 | padding: 5px; |
4784 | | - white-space: nowrap; |
4785 | 4783 | font-size: 0.875rem; |
4786 | 4784 | background-color: var(--background-color); |
4787 | 4785 | color: var(--text-color); |
@@ -9793,11 +9791,11 @@ var drawChart = (function (exports) { |
9793 | 9791 | const boundingRect = ref.current.getBoundingClientRect(); |
9794 | 9792 | if (pos.left + boundingRect.width > window.innerWidth) { |
9795 | 9793 | // Shifting horizontally |
9796 | | - pos.left = window.innerWidth - boundingRect.width; |
| 9794 | + pos.left = Math.max(0, window.innerWidth - boundingRect.width); |
9797 | 9795 | } |
9798 | 9796 | if (pos.top + boundingRect.height > window.innerHeight) { |
9799 | 9797 | // Flipping vertically |
9800 | | - pos.top = mouseCoords.y - Tooltip_marginY - boundingRect.height; |
| 9798 | + pos.top = Math.max(0, mouseCoords.y - Tooltip_marginY - boundingRect.height); |
9801 | 9799 | } |
9802 | 9800 | setStyle(pos); |
9803 | 9801 | }; |
@@ -10323,7 +10321,6 @@ main { |
10323 | 10321 | border: 2px solid; |
10324 | 10322 | border-radius: 5px; |
10325 | 10323 | padding: 5px; |
10326 | | - white-space: nowrap; |
10327 | 10324 | font-size: 0.875rem; |
10328 | 10325 | background-color: var(--background-color); |
10329 | 10326 | color: var(--text-color); |
@@ -15328,7 +15325,6 @@ main { |
15328 | 15325 | border: 2px solid; |
15329 | 15326 | border-radius: 5px; |
15330 | 15327 | padding: 5px; |
15331 | | - white-space: nowrap; |
15332 | 15328 | font-size: 0.875rem; |
15333 | 15329 | background-color: var(--background-color); |
15334 | 15330 | color: var(--text-color); |
@@ -18717,11 +18713,11 @@ var drawChart = (function (exports) { |
18717 | 18713 | const boundingRect = ref.current.getBoundingClientRect(); |
18718 | 18714 | if (pos.left + boundingRect.width > window.innerWidth) { |
18719 | 18715 | // Shifting horizontally |
18720 | | - pos.left = window.innerWidth - boundingRect.width; |
| 18716 | + pos.left = Math.max(0, window.innerWidth - boundingRect.width); |
18721 | 18717 | } |
18722 | 18718 | if (pos.top + boundingRect.height > window.innerHeight) { |
18723 | 18719 | // Flipping vertically |
18724 | | - pos.top = mouseCoords.y - Tooltip_marginY - boundingRect.height; |
| 18720 | + pos.top = Math.max(0, mouseCoords.y - Tooltip_marginY - boundingRect.height); |
18725 | 18721 | } |
18726 | 18722 | setStyle(pos); |
18727 | 18723 | }; |
@@ -20282,7 +20278,6 @@ main { |
20282 | 20278 | border: 2px solid; |
20283 | 20279 | border-radius: 5px; |
20284 | 20280 | padding: 5px; |
20285 | | - white-space: nowrap; |
20286 | 20281 | font-size: 0.875rem; |
20287 | 20282 | background-color: var(--background-color); |
20288 | 20283 | color: var(--text-color); |
@@ -24987,7 +24982,6 @@ main { |
24987 | 24982 | border: 2px solid; |
24988 | 24983 | border-radius: 5px; |
24989 | 24984 | padding: 5px; |
24990 | | - white-space: nowrap; |
24991 | 24985 | font-size: 0.875rem; |
24992 | 24986 | background-color: var(--background-color); |
24993 | 24987 | color: var(--text-color); |
@@ -29999,11 +29993,11 @@ var drawChart = (function (exports) { |
29999 | 29993 | const boundingRect = ref.current.getBoundingClientRect(); |
30000 | 29994 | if (pos.left + boundingRect.width > window.innerWidth) { |
30001 | 29995 | // Shifting horizontally |
30002 | | - pos.left = window.innerWidth - boundingRect.width; |
| 29996 | + pos.left = Math.max(0, window.innerWidth - boundingRect.width); |
30003 | 29997 | } |
30004 | 29998 | if (pos.top + boundingRect.height > window.innerHeight) { |
30005 | 29999 | // Flipping vertically |
30006 | | - pos.top = mouseCoords.y - Tooltip_marginY - boundingRect.height; |
| 30000 | + pos.top = Math.max(0, mouseCoords.y - Tooltip_marginY - boundingRect.height); |
30007 | 30001 | } |
30008 | 30002 | setStyle(pos); |
30009 | 30003 | }; |
@@ -30529,7 +30523,6 @@ main { |
30529 | 30523 | border: 2px solid; |
30530 | 30524 | border-radius: 5px; |
30531 | 30525 | padding: 5px; |
30532 | | - white-space: nowrap; |
30533 | 30526 | font-size: 0.875rem; |
30534 | 30527 | background-color: var(--background-color); |
30535 | 30528 | color: var(--text-color); |
@@ -35534,7 +35527,6 @@ main { |
35534 | 35527 | border: 2px solid; |
35535 | 35528 | border-radius: 5px; |
35536 | 35529 | padding: 5px; |
35537 | | - white-space: nowrap; |
35538 | 35530 | font-size: 0.875rem; |
35539 | 35531 | background-color: var(--background-color); |
35540 | 35532 | color: var(--text-color); |
@@ -38923,11 +38915,11 @@ var drawChart = (function (exports) { |
38923 | 38915 | const boundingRect = ref.current.getBoundingClientRect(); |
38924 | 38916 | if (pos.left + boundingRect.width > window.innerWidth) { |
38925 | 38917 | // Shifting horizontally |
38926 | | - pos.left = window.innerWidth - boundingRect.width; |
| 38918 | + pos.left = Math.max(0, window.innerWidth - boundingRect.width); |
38927 | 38919 | } |
38928 | 38920 | if (pos.top + boundingRect.height > window.innerHeight) { |
38929 | 38921 | // Flipping vertically |
38930 | | - pos.top = mouseCoords.y - Tooltip_marginY - boundingRect.height; |
| 38922 | + pos.top = Math.max(0, mouseCoords.y - Tooltip_marginY - boundingRect.height); |
38931 | 38923 | } |
38932 | 38924 | setStyle(pos); |
38933 | 38925 | }; |
|
0 commit comments