Update app.py
Browse files
app.py
CHANGED
@@ -1125,8 +1125,8 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
|
|
1125 |
<div id='compass_box'><div id='compass'><a id='fullscreen' onclick='
|
1126 |
const model3D = document.getElementById(\"model3D\");
|
1127 |
if (model3D.style.width != \"100vw\") {
|
1128 |
-
model3D.style.width = \"
|
1129 |
-
model3D.style.height = \"
|
1130 |
model3D.style.position = \"fixed\";
|
1131 |
model3D.style.left = \"0\";
|
1132 |
model3D.style.top = \"0\";
|
|
|
1125 |
<div id='compass_box'><div id='compass'><a id='fullscreen' onclick='
|
1126 |
const model3D = document.getElementById(\"model3D\");
|
1127 |
if (model3D.style.width != \"100vw\") {
|
1128 |
+
model3D.style.width = window.innerWidth + \"px\";
|
1129 |
+
model3D.style.height = window.innerHeight + \"px\";
|
1130 |
model3D.style.position = \"fixed\";
|
1131 |
model3D.style.left = \"0\";
|
1132 |
model3D.style.top = \"0\";
|