Spaces:
Running
Running
Update interface.js
Browse files- interface.js +2 -4
interface.js
CHANGED
|
@@ -226,8 +226,6 @@ const currentScriptTag = document.currentScript;
|
|
| 226 |
maxHeight: widgetContainer.style.maxHeight,
|
| 227 |
paddingBottom: widgetContainer.style.paddingBottom || originalAspect,
|
| 228 |
margin: widgetContainer.style.margin,
|
| 229 |
-
aspectPercent: originalAspect,
|
| 230 |
-
calculatedAspect: calculatedRatio,
|
| 231 |
},
|
| 232 |
viewer: {
|
| 233 |
borderRadius: viewerContainerElem.style.borderRadius,
|
|
@@ -238,7 +236,7 @@ const currentScriptTag = document.currentScript;
|
|
| 238 |
|
| 239 |
function restoreOriginalStyles() {
|
| 240 |
if (!savedState) return;
|
| 241 |
-
let aspectToUse = savedState.widget.
|
| 242 |
widgetContainer.style.position = savedState.widget.position || "";
|
| 243 |
widgetContainer.style.top = savedState.widget.top || "";
|
| 244 |
widgetContainer.style.left = savedState.widget.left || "";
|
|
@@ -250,7 +248,7 @@ const currentScriptTag = document.currentScript;
|
|
| 250 |
widgetContainer.style.margin = savedState.widget.margin || "";
|
| 251 |
widgetContainer.classList.remove('fake-fullscreen');
|
| 252 |
|
| 253 |
-
viewerContainerElem.style.position
|
| 254 |
viewerContainerElem.style.top = "0";
|
| 255 |
viewerContainerElem.style.left = "0";
|
| 256 |
viewerContainerElem.style.right = "0";
|
|
|
|
| 226 |
maxHeight: widgetContainer.style.maxHeight,
|
| 227 |
paddingBottom: widgetContainer.style.paddingBottom || originalAspect,
|
| 228 |
margin: widgetContainer.style.margin,
|
|
|
|
|
|
|
| 229 |
},
|
| 230 |
viewer: {
|
| 231 |
borderRadius: viewerContainerElem.style.borderRadius,
|
|
|
|
| 236 |
|
| 237 |
function restoreOriginalStyles() {
|
| 238 |
if (!savedState) return;
|
| 239 |
+
let aspectToUse = savedState.widget.paddingBottom;
|
| 240 |
widgetContainer.style.position = savedState.widget.position || "";
|
| 241 |
widgetContainer.style.top = savedState.widget.top || "";
|
| 242 |
widgetContainer.style.left = savedState.widget.left || "";
|
|
|
|
| 248 |
widgetContainer.style.margin = savedState.widget.margin || "";
|
| 249 |
widgetContainer.classList.remove('fake-fullscreen');
|
| 250 |
|
| 251 |
+
viewerContainerElem.style.position = "absolute";
|
| 252 |
viewerContainerElem.style.top = "0";
|
| 253 |
viewerContainerElem.style.left = "0";
|
| 254 |
viewerContainerElem.style.right = "0";
|