Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 428bd1c

Browse files
committed
fixed relayout after first draw
1 parent a9a2c6a commit 428bd1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plots/gl3d/scene.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,8 @@ proto.setCamera = function setCamera(cameraData) {
778778
var oldOrtho = this.glplot.camera._ortho;
779779

780780
if(newOrtho !== oldOrtho) {
781+
this.glplot.redraw();
782+
781783
var RGBA = this.glplot.clearColor;
782784
this.glplot.gl.clearColor(
783785
RGBA[0], RGBA[1], RGBA[2], RGBA[3]

0 commit comments

Comments
 (0)