@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.js CHANGED
@@ -881,14 +881,17 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
881
881
  frame["squatchJsApi"] = this;
882
882
  frame.id = "squatchFrame";
883
883
  frame.width = "100%";
884
- if (options == null ? void 0 : options.minWidth) frame.style.minWidth = options.minWidth;
885
- if (options == null ? void 0 : options.maxWidth) frame.style.maxWidth = options.maxWidth;
886
884
  frame.src = "about:blank";
887
885
  frame.scrolling = "no";
888
886
  frame.setAttribute(
889
887
  "style",
890
888
  "border: 0; background-color: none; width: 1px; min-width: 100%;"
891
889
  );
890
+ if (options == null ? void 0 : options.minWidth) frame.style.minWidth = options.minWidth;
891
+ if (options == null ? void 0 : options.maxWidth) frame.style.maxWidth = options.maxWidth;
892
+ if ((options == null ? void 0 : options.maxWidth) || (options == null ? void 0 : options.minWidth)) {
893
+ frame.style.width = "100%";
894
+ }
892
895
  return frame;
893
896
  }
894
897
  _findFrame() {