@saasquatch/squatch-js 2.8.0-5 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/squatch.cjs.js +5 -2
- package/dist/squatch.cjs.js.map +1 -1
- package/dist/squatch.esm.js +5 -2
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +5 -2
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +1 -1
- package/package.json +1 -1
package/dist/squatch.cjs.js
CHANGED
|
@@ -879,14 +879,17 @@ class Widget {
|
|
|
879
879
|
frame["squatchJsApi"] = this;
|
|
880
880
|
frame.id = "squatchFrame";
|
|
881
881
|
frame.width = "100%";
|
|
882
|
-
if (options == null ? void 0 : options.minWidth) frame.style.minWidth = options.minWidth;
|
|
883
|
-
if (options == null ? void 0 : options.maxWidth) frame.style.maxWidth = options.maxWidth;
|
|
884
882
|
frame.src = "about:blank";
|
|
885
883
|
frame.scrolling = "no";
|
|
886
884
|
frame.setAttribute(
|
|
887
885
|
"style",
|
|
888
886
|
"border: 0; background-color: none; width: 1px; min-width: 100%;"
|
|
889
887
|
);
|
|
888
|
+
if (options == null ? void 0 : options.minWidth) frame.style.minWidth = options.minWidth;
|
|
889
|
+
if (options == null ? void 0 : options.maxWidth) frame.style.maxWidth = options.maxWidth;
|
|
890
|
+
if ((options == null ? void 0 : options.maxWidth) || (options == null ? void 0 : options.minWidth)) {
|
|
891
|
+
frame.style.width = "100%";
|
|
892
|
+
}
|
|
890
893
|
return frame;
|
|
891
894
|
}
|
|
892
895
|
_findFrame() {
|