Commit 7d8a949a authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix tooltip position on right edge on Firefox

parent 77d83dfc
......@@ -3745,7 +3745,8 @@
}
if (tooltipRight > chartRight) {
tooltipLeft -= tooltipRight - chartRight;
// 20 is needed for Firefox to keep tooletip width
tooltipLeft -= tooltipRight - chartRight + 20;
}
if (tooltipTop + tHeight > $$.currentHeight) {
tooltipTop -= tHeight + 30;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -75,7 +75,8 @@ c3_chart_internal_fn.tooltipPosition = function (dataToShow, tWidth, tHeight, el
}
if (tooltipRight > chartRight) {
tooltipLeft -= tooltipRight - chartRight;
// 20 is needed for Firefox to keep tooletip width
tooltipLeft -= tooltipRight - chartRight + 20;
}
if (tooltipTop + tHeight > $$.currentHeight) {
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