@hulkapps/app-manager-vue 3.1.12 → 3.1.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hulkapps/app-manager-vue",
3
- "version": "3.1.12",
3
+ "version": "3.1.13",
4
4
  "description": "Vue SDK to render app manager contents",
5
5
  "main": "dist/app-manager-vue.ssr.js",
6
6
  "browser": "dist/app-manager-vue.esm.js",
@@ -98,15 +98,25 @@ export default {
98
98
  const featureNames = document.querySelectorAll(
99
99
  `.plan-feature-name${featureType}`
100
100
  );
101
+
102
+ // Reset any previously-set inline heights/minHeights so measurements reflect natural content
103
+ featureNames.forEach((fn) => {
104
+ fn.style.height = "";
105
+ fn.style.minHeight = "";
106
+ });
101
107
  slides.forEach((slide) => {
102
108
  const features = slide.querySelectorAll(
103
109
  `.plan-feature${featureType}`
104
110
  );
111
+ // Reset feature cells in this slide before measuring
112
+ features.forEach((f) => {
113
+ f.style.height = "";
114
+ f.style.minHeight = "";
115
+ });
116
+
105
117
  featureNames.forEach((featureName, index) => {
106
118
  const feature = features[index];
107
119
  if (featureName && feature) {
108
- featureName.style.height = 'auto';
109
- feature.style.height = 'auto';
110
120
 
111
121
  let measured = featureName.getBoundingClientRect().height;
112
122
  if (!measured || measured <= 0) {
@@ -115,9 +125,7 @@ export default {
115
125
 
116
126
  const intHeight = Math.ceil(measured);
117
127
  featureName.style.height = `${intHeight}px`;
118
- featureName.style.minHeight = `${intHeight}px`;
119
128
  feature.style.height = `${intHeight}px`;
120
- feature.style.minHeight = `${intHeight}px`;
121
129
  }
122
130
  });
123
131
  });
@@ -129,7 +137,8 @@ export default {
129
137
  );
130
138
  if (planNames) {
131
139
  planNames.forEach((el) => {
132
- el.style.minHeight = `unset`;
140
+ el.style.minHeight = "";
141
+ el.style.height = "";
133
142
  });
134
143
  }
135
144
  const plansAvailableName = document.querySelector(