Skip to content

Commit 83482fb

Browse files
committed
only autorange on visible annotations
1 parent 8f0038d commit 83482fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/annotations/calc_autorange.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function annAutorange(gd) {
4545
// relative to their anchor points
4646
// use the arrow and the text bg rectangle,
4747
// as the whole anno may include hidden text in its bbox
48-
fullLayout.annotations.forEach(function(ann) {
48+
Lib.filterVisible(fullLayout.annotations).forEach(function(ann) {
4949
var xa = Axes.getFromId(gd, ann.xref),
5050
ya = Axes.getFromId(gd, ann.yref),
5151
headSize = 3 * ann.arrowsize * ann.arrowwidth || 0;

0 commit comments

Comments
 (0)