File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,8 @@ function getPieChartTargetPlacement(point: Highcharts.Point): Rect {
198198 // Instead, there is a `tooltipPos` tuple, which is not covered by TS.
199199 // See: https://github.com/highcharts/highcharts/issues/23118.
200200 if ( "tooltipPos" in point && Array . isArray ( point . tooltipPos ) ) {
201- return { x : point . tooltipPos [ 0 ] , y : point . tooltipPos [ 1 ] , width : 0 , height : 0 } ;
201+ // We use very small but non-zero track size as otherwise it is placed incorrectly in Firefox.
202+ return { x : point . tooltipPos [ 0 ] , y : point . tooltipPos [ 1 ] , width : 0.1 , height : 0.1 } ;
202203 }
203204 // We use the alternative, middle, tooltip placement as a fallback, in case the undocumented "tooltipPos"
204205 // is no longer available in the point.
You can’t perform that action at this time.
0 commit comments