Skip to content

Commit 61c2889

Browse files
committed
set ax._fullDepth only when needed
1 parent 5506ed4 commit 61c2889

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,7 +2272,7 @@ axes.draw = function(gd, arg, opts) {
22722272
var axDone = axes.drawOne(gd, ax, opts);
22732273

22742274
if(ax._shiftPusher) {
2275-
incrementShift(ax, ax._fullDepth, axShifts, true);
2275+
incrementShift(ax, ax._fullDepth || 0, axShifts, true);
22762276
}
22772277
ax._r = ax.range.slice();
22782278
ax._rl = Lib.simpleMap(ax._r, ax.r2l);
@@ -2347,7 +2347,6 @@ axes.drawOne = function(gd, ax, opts) {
23472347
// axis as result of using the dragbox, for example.
23482348
if(opts.skipTitle !== true || ax._shift === undefined) ax._shift = setShiftVal(ax, axShifts);
23492349

2350-
ax._fullDepth = 0;
23512350
var mainAxLayer = mainPlotinfo[axLetter + 'axislayer'];
23522351
var mainLinePosition = ax._mainLinePosition;
23532352
var mainLinePositionShift = mainLinePosition += ax._shift;

0 commit comments

Comments
 (0)