isobit-ui 0.2.25 → 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 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.24
2
+ * isobit-ui v0.2.25
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -1146,19 +1146,20 @@ 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]) {
1156
- var getAbsoluteHeight = function getAbsoluteHeight(el) {
1157
- var styles = window.getComputedStyle(el);
1158
- var margin = parseFloat(styles['marginTop']) + parseFloat(styles['marginBottom']);
1159
- return Math.ceil(el.offsetHeight + margin);
1160
- };
1161
-
1162
1163
  //se obtiene el alto del headr
1163
1164
  h = h - el.children[0].offsetHeight;
1164
1165
  el.children[1].style.height = h + "px";
@@ -1169,14 +1170,11 @@ var script$j = {
1169
1170
  var el2; //,style2;
1170
1171
 
1171
1172
  [].forEach.call(el.children, function (ee, i) {
1172
- console.log(i);
1173
- console.log(ee);
1174
-
1175
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")) {
1176
- h -= getAbsoluteHeight(ee) + 2;
1174
+ console.log(ee);
1175
+ h -= me.getAbsoluteHeight(ee) + 2;
1177
1176
  } else if (!el2) {
1178
1177
  el2 = ee;
1179
- console.log(el2);
1180
1178
  }
1181
1179
  });
1182
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.25",
3
+ "version": "0.2.26",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [