Skip to content

Commit 7357f82

Browse files
committed
fixup (return early in Axes.expand if not under autorange)
1 parent 5406829 commit 7357f82

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plots/cartesian/axes.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,11 @@ axes.saveRangeInitial = function(gd, overwrite) {
378378
// tozero: (boolean) make sure to include zero if axis is linear,
379379
// and make it a tight bound if possible
380380
axes.expand = function(ax, data, options) {
381-
var needsAutorange = (ax.autorange || Lib.nestedProperty(ax, 'rangeslider.autorange'));
381+
var needsAutorange = (
382+
ax.autorange ||
383+
!!Lib.nestedProperty(ax, 'rangeslider.autorange').get()
384+
);
385+
382386
if(!needsAutorange || !data) return;
383387

384388
if(!ax._min) ax._min = [];

0 commit comments

Comments
 (0)