Skip to content

Commit be762b6

Browse files
committed
Revert "should not depend on the rangemode of counter axis"
This reverts commit f31d97c.
1 parent f31d97c commit be762b6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/plots/cartesian/autorange.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ function makePadFn(fullLayout, ax, max) {
229229
if(ax.rangemode !== 'nonnegative') {
230230
A = padInsideLabelsOnAnchorAxis(ax, max);
231231

232-
B = padInsideLabelsOnThisAxis(ax, max);
232+
if(anchorAxis.rangemode !== 'nonnegative') {
233+
B = padInsideLabelsOnThisAxis(ax, max);
234+
}
233235
}
234236
}
235237

8.17 KB
Loading

0 commit comments

Comments
 (0)