Skip to content

Commit ba16783

Browse files
committed
clear _insideTickLabelsUpdaterange before applying it
1 parent 6d858ad commit ba16783

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plot_api/plot_api.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,12 @@ function _doPlot(gd, data, layout, config) {
354354
seq.push(
355355
drawAxes,
356356
function insideTickLabelsAutorange(gd) {
357-
if(gd._fullLayout._insideTickLabelsUpdaterange) {
358-
return relayout(gd, gd._fullLayout._insideTickLabelsUpdaterange).then(function() {
359-
Axes.saveRangeInitial(gd, true);
357+
var insideTickLabelsUpdaterange = gd._fullLayout._insideTickLabelsUpdaterange;
358+
if(insideTickLabelsUpdaterange) {
359+
gd._fullLayout._insideTickLabelsUpdaterange = undefined;
360360

361-
gd._fullLayout._insideTickLabelsUpdaterange = undefined;
361+
return relayout(gd, insideTickLabelsUpdaterange).then(function() {
362+
Axes.saveRangeInitial(gd, true);
362363
});
363364
}
364365
}
@@ -1785,7 +1786,6 @@ function relayout(gd, astr, val) {
17851786
// something may have happened within relayout that we
17861787
// need to wait for
17871788
var seq = [Plots.previousPromises];
1788-
17891789
if(flags.layoutReplot) {
17901790
seq.push(subroutines.layoutReplot);
17911791
} else if(Object.keys(aobj).length) {

0 commit comments

Comments
 (0)