Skip to content

Commit 7e79b06

Browse files
committed
await Axes.draw before returning from doTicksRelayout
1 parent 487b9b3 commit 7e79b06

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/plot_api/subroutines.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ exports.doLegend = function(gd) {
684684
};
685685

686686
exports.doTicksRelayout = function(gd) {
687-
Axes.draw(gd, 'redraw');
687+
var drawPromise = Axes.draw(gd, 'redraw');
688688

689689
if(gd._fullLayout._hasOnlyLargeSploms) {
690690
Registry.subplotsRegistry.splom.updateGrid(gd);
@@ -693,7 +693,9 @@ exports.doTicksRelayout = function(gd) {
693693
}
694694

695695
exports.drawMainTitle(gd);
696-
return Plots.previousPromises(gd);
696+
return Promise.resolve(drawPromise).then(function() {
697+
return Plots.previousPromises(gd);
698+
});
697699
};
698700

699701
exports.doModeBar = function(gd) {

0 commit comments

Comments
 (0)