Skip to content

Commit 9a665db

Browse files
committed
add extra ax.automargin condition for fixLabelOverlaps bypass
1 parent 58fd632 commit 9a665db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/axes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2597,10 +2597,10 @@ axes.drawLabels = function(gd, ax, opts) {
25972597

25982598
var seq = [allLabelsReady];
25992599

2600-
// N.B. during auto-margin redraw, if the axis fixed its label overlaps
2600+
// N.B. during auto-margin redraws, if the axis fixed its label overlaps
26012601
// by rotating 90 degrees, do not attempt to re-fix its label overlaps
26022602
// as this can lead to infinite redraw loops!
2603-
if(fullLayout._redrawFromAutoMarginCount && prevAngle === 90) {
2603+
if(ax.automargin && fullLayout._redrawFromAutoMarginCount && prevAngle === 90) {
26042604
autoangle = 90;
26052605
seq.push(function() {
26062606
positionLabels(tickLabels, prevAngle);

0 commit comments

Comments
 (0)