@brndts/brndts-ads 1.11.3 → 1.11.4

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/index.mjs CHANGED
@@ -71181,10 +71181,18 @@ var RegionBorderPlugin = /*#__PURE__*/ function() {
71181
71181
  var styles2 = window.getComputedStyle(region.content.view);
71182
71182
  var width = parseFloat(styles2.width);
71183
71183
  var height = parseFloat(styles2.height);
71184
- region.view.style.width = "".concat(region.boxWidth + 4, "px");
71185
- region.view.style.height = "".concat(region.boxHeight + 4, "px");
71186
- region.content.view.style.width = "".concat(width + 4, "px");
71187
- region.content.view.style.height = "".concat(height + 4, "px");
71184
+ if (region.view.style.width !== "fit-content") {
71185
+ region.view.style.width = "".concat(region.boxWidth + 4, "px");
71186
+ }
71187
+ if (region.view.style.height !== "fit-content") {
71188
+ region.view.style.height = "".concat(region.boxHeight + 4, "px");
71189
+ }
71190
+ if (region.content.view.style.width !== "fit-content") {
71191
+ region.content.view.style.width = "".concat(width + 4, "px");
71192
+ }
71193
+ if (region.content.view.style.height !== "fit-content") {
71194
+ region.content.view.style.height = "".concat(height + 4, "px");
71195
+ }
71188
71196
  return Promise.resolve();
71189
71197
  }
71190
71198
  },
@@ -71194,10 +71202,18 @@ var RegionBorderPlugin = /*#__PURE__*/ function() {
71194
71202
  var styles2 = window.getComputedStyle(region.content.view);
71195
71203
  var width = parseFloat(styles2.width);
71196
71204
  var height = parseFloat(styles2.height);
71197
- region.view.style.width = "".concat(region.boxWidth + 4, "px");
71198
- region.view.style.height = "".concat(region.boxHeight + 4, "px");
71199
- region.content.view.style.width = "".concat(width + 4, "px");
71200
- region.content.view.style.height = "".concat(height + 4, "px");
71205
+ if (region.view.style.width !== "fit-content") {
71206
+ region.view.style.width = "".concat(region.boxWidth + 4, "px");
71207
+ }
71208
+ if (region.view.style.height !== "fit-content") {
71209
+ region.view.style.height = "".concat(region.boxHeight + 4, "px");
71210
+ }
71211
+ if (region.content.view.style.width !== "fit-content") {
71212
+ region.content.view.style.width = "".concat(width + 4, "px");
71213
+ }
71214
+ if (region.content.view.style.height !== "fit-content") {
71215
+ region.content.view.style.height = "".concat(height + 4, "px");
71216
+ }
71201
71217
  return Promise.resolve();
71202
71218
  }
71203
71219
  },