Spaces:
Running
Running
Update interface.js
Browse files- interface.js +10 -10
interface.js
CHANGED
|
@@ -222,8 +222,8 @@ const currentScriptTag = document.currentScript;
|
|
| 222 |
left: widgetContainer.style.left,
|
| 223 |
width: widgetContainer.style.width,
|
| 224 |
height: widgetContainer.style.height,
|
| 225 |
-
maxWidth:
|
| 226 |
-
maxHeight:
|
| 227 |
paddingBottom: widgetContainer.style.paddingBottom || originalAspect,
|
| 228 |
margin: widgetContainer.style.margin,
|
| 229 |
},
|
|
@@ -249,14 +249,14 @@ const currentScriptTag = document.currentScript;
|
|
| 249 |
widgetContainer.classList.remove('fake-fullscreen');
|
| 250 |
|
| 251 |
viewerContainerElem.style.position = "absolute";
|
| 252 |
-
viewerContainerElem.style.top
|
| 253 |
-
viewerContainerElem.style.left
|
| 254 |
-
viewerContainerElem.style.right
|
| 255 |
-
viewerContainerElem.style.bottom
|
| 256 |
-
viewerContainerElem.style.width
|
| 257 |
-
viewerContainerElem.style.height
|
| 258 |
-
viewerContainerElem.style.borderRadius
|
| 259 |
-
viewerContainerElem.style.border
|
| 260 |
|
| 261 |
if (viewerModule.app) {
|
| 262 |
const cw = viewerContainerElem.clientWidth;
|
|
|
|
| 222 |
left: widgetContainer.style.left,
|
| 223 |
width: widgetContainer.style.width,
|
| 224 |
height: widgetContainer.style.height,
|
| 225 |
+
maxWidth: widgetContainer.style.maxWidth,
|
| 226 |
+
maxHeight:widgetContainer.style.maxHeight,
|
| 227 |
paddingBottom: widgetContainer.style.paddingBottom || originalAspect,
|
| 228 |
margin: widgetContainer.style.margin,
|
| 229 |
},
|
|
|
|
| 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";
|
| 255 |
+
viewerContainerElem.style.bottom = "0";
|
| 256 |
+
viewerContainerElem.style.width = "100%";
|
| 257 |
+
viewerContainerElem.style.height = "100%";
|
| 258 |
+
viewerContainerElem.style.borderRadius = savedState.viewer.borderRadius || "";
|
| 259 |
+
viewerContainerElem.style.border = savedState.viewer.border || "";
|
| 260 |
|
| 261 |
if (viewerModule.app) {
|
| 262 |
const cw = viewerContainerElem.clientWidth;
|