diff --git a/sandbox/embed_iframe.html b/sandbox/embed_iframe.html
index 953647d..3637c24 100644
--- a/sandbox/embed_iframe.html
+++ b/sandbox/embed_iframe.html
@@ -19,12 +19,7 @@
style="border:1px solid #eeeeee;">
-
diff --git a/sandbox/embed_iframe_camera.html b/sandbox/embed_iframe_camera.html
new file mode 100644
index 0000000..5514433
--- /dev/null
+++ b/sandbox/embed_iframe_camera.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+ Online 3D Viewer
+
+
+
+
+
+
+
diff --git a/source/website/embed.js b/source/website/embed.js
index be1342b..5f7addd 100644
--- a/source/website/embed.js
+++ b/source/website/embed.js
@@ -112,7 +112,7 @@ export class Embed
this.viewer.SetCamera (camera);
} else {
this.viewer.SetUpVector (Direction.Y, false);
+ this.viewer.FitSphereToWindow (boundingSphere, false);
}
- this.viewer.FitSphereToWindow (boundingSphere, false);
}
}