@innovastudio/contentbox 1.5.22 → 1.5.23

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
- "type": "module",
4
- "version": "1.5.22",
3
+ "version": "1.5.23",
5
4
  "description": "",
6
5
  "main": "public/contentbox/contentbox.esm.js",
7
6
  "files": [
@@ -4626,6 +4626,7 @@ class EditSection {
4626
4626
 
4627
4627
  let boxes = section.querySelectorAll('.is-box');
4628
4628
  boxes.forEach(box => {
4629
+ box.classList.add('box-autofit');
4629
4630
  let bAlreadyHasMinHeight = false;
4630
4631
  box.classList.forEach(item => {
4631
4632
  if (item.indexOf('min-height') !== -1) {
@@ -4633,9 +4634,8 @@ class EditSection {
4633
4634
  }
4634
4635
  });
4635
4636
 
4636
- if (!bAlreadyHasMinHeight) {
4637
- box.classList.add('box-autofit');
4638
- box.classList.add('min-height-50');
4637
+ if (box.querySelector('.is-overlay-bg')) {
4638
+ if (!bAlreadyHasMinHeight) box.classList.add('min-height-50');
4639
4639
  }
4640
4640
  });
4641
4641
  }