isobit-ui 0.2.24 → 0.2.26

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.23
2
+ * isobit-ui v0.2.25
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -1146,10 +1146,17 @@ var script$j = {
1146
1146
  }, 100);
1147
1147
  }
1148
1148
  },
1149
+ getAbsoluteHeight: function getAbsoluteHeight(el) {
1150
+ var styles = window.getComputedStyle(el);
1151
+ var margin = parseFloat(styles["marginTop"]) + parseFloat(styles["marginBottom"]);
1152
+ return Math.ceil(el.offsetHeight + margin);
1153
+ },
1149
1154
  resize: function resize(e) {
1150
1155
  var me = this,
1151
1156
  el = me.$el,
1152
1157
  h = e.height;
1158
+ console.log(h);
1159
+ console.log(el);
1153
1160
  el.style.height = h + "px"; //si tiene header
1154
1161
 
1155
1162
  if (el.children[1]) {
@@ -1163,14 +1170,11 @@ var script$j = {
1163
1170
  var el2; //,style2;
1164
1171
 
1165
1172
  [].forEach.call(el.children, function (ee, i) {
1166
- console.log(i);
1167
- console.log(ee); //style2 = window.getComputedStyle(ee);
1168
-
1169
1173
  if (i == el.children.length - 1 && ee.tagName == "CENTER" || !ee.classList.contains("v-scrollable") && !ee.classList.contains("v-form") && !ee.classList.contains("v-resize")) {
1170
- h -= ee.offsetHeight + 2;
1174
+ console.log(ee);
1175
+ h -= me.getAbsoluteHeight(ee) + 2;
1171
1176
  } else if (!el2) {
1172
1177
  el2 = ee;
1173
- console.log(el2);
1174
1178
  }
1175
1179
  });
1176
1180
  el = el2; // console.log(el);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.24",
3
+ "version": "0.2.26",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [