@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.js CHANGED
@@ -71119,10 +71119,18 @@ var RegionBorderPlugin = /*#__PURE__*/ function() {
71119
71119
  var styles2 = window.getComputedStyle(region.content.view);
71120
71120
  var width = parseFloat(styles2.width);
71121
71121
  var height = parseFloat(styles2.height);
71122
- region.view.style.width = "".concat(region.boxWidth + 4, "px");
71123
- region.view.style.height = "".concat(region.boxHeight + 4, "px");
71124
- region.content.view.style.width = "".concat(width + 4, "px");
71125
- region.content.view.style.height = "".concat(height + 4, "px");
71122
+ if (region.view.style.width !== "fit-content") {
71123
+ region.view.style.width = "".concat(region.boxWidth + 4, "px");
71124
+ }
71125
+ if (region.view.style.height !== "fit-content") {
71126
+ region.view.style.height = "".concat(region.boxHeight + 4, "px");
71127
+ }
71128
+ if (region.content.view.style.width !== "fit-content") {
71129
+ region.content.view.style.width = "".concat(width + 4, "px");
71130
+ }
71131
+ if (region.content.view.style.height !== "fit-content") {
71132
+ region.content.view.style.height = "".concat(height + 4, "px");
71133
+ }
71126
71134
  return Promise.resolve();
71127
71135
  }
71128
71136
  },
@@ -71132,10 +71140,18 @@ var RegionBorderPlugin = /*#__PURE__*/ function() {
71132
71140
  var styles2 = window.getComputedStyle(region.content.view);
71133
71141
  var width = parseFloat(styles2.width);
71134
71142
  var height = parseFloat(styles2.height);
71135
- region.view.style.width = "".concat(region.boxWidth + 4, "px");
71136
- region.view.style.height = "".concat(region.boxHeight + 4, "px");
71137
- region.content.view.style.width = "".concat(width + 4, "px");
71138
- region.content.view.style.height = "".concat(height + 4, "px");
71143
+ if (region.view.style.width !== "fit-content") {
71144
+ region.view.style.width = "".concat(region.boxWidth + 4, "px");
71145
+ }
71146
+ if (region.view.style.height !== "fit-content") {
71147
+ region.view.style.height = "".concat(region.boxHeight + 4, "px");
71148
+ }
71149
+ if (region.content.view.style.width !== "fit-content") {
71150
+ region.content.view.style.width = "".concat(width + 4, "px");
71151
+ }
71152
+ if (region.content.view.style.height !== "fit-content") {
71153
+ region.content.view.style.height = "".concat(height + 4, "px");
71154
+ }
71139
71155
  return Promise.resolve();
71140
71156
  }
71141
71157
  },