Commit 90f5a992 authored by Jeroen Janssen's avatar Jeroen Janssen

Fix disappearing tooltips with lots of segments.

This fixes an issue with tooltips disappearing when graphs are close to the top of the page and have lots of segments, causing them to be bigger than the chart height.
parent 1d8184cf
...@@ -2063,7 +2063,7 @@ ...@@ -2063,7 +2063,7 @@
if (tooltipRight > chartRight) { if (tooltipRight > chartRight) {
tooltipLeft -= tooltipRight - chartRight; tooltipLeft -= tooltipRight - chartRight;
} }
if (tooltipTop + tHeight > getCurrentHeight()) { if (tooltipTop + tHeight > getCurrentHeight() && tooltipTop > tHeight + 30) {
tooltipTop -= tHeight + 30; tooltipTop -= tHeight + 30;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment