Skip to content

Commit f31d97c

Browse files
committed
should not depend on the rangemode of counter axis
1 parent bc38ade commit f31d97c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/plots/cartesian/autorange.js

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

232-
if(anchorAxis.rangemode !== 'nonnegative') {
233-
B = padInsideLabelsOnThisAxis(ax, max);
234-
}
232+
B = padInsideLabelsOnThisAxis(ax, max);
235233
}
236234
}
237235

-8.17 KB
Loading

0 commit comments

Comments
 (0)