Skip to content

Commit 2d7a8d2

Browse files
committed
add force redraw step in scene.plot,
- so that Plotly.plot promise is returned when rendering is completed
1 parent c53a00a commit 2d7a8d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plots/gl3d/scene.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,9 @@ proto.plot = function(sceneData, fullLayout, layout) {
542542
containerStyle.width = (size.w * (domain.x[1] - domain.x[0])) + 'px';
543543
containerStyle.height = (size.h * (domain.y[1] - domain.y[0])) + 'px';
544544
}
545+
546+
// force redraw so that promise is returned when rendering is completed
547+
this.glplot.redraw();
545548
};
546549

547550
proto.destroy = function() {

0 commit comments

Comments
 (0)