isobit-ui 0.2.23 → 0.2.25
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 +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.2.
|
|
2
|
+
* isobit-ui v0.2.24
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1153,6 +1153,12 @@ var script$j = {
|
|
|
1153
1153
|
el.style.height = h + "px"; //si tiene header
|
|
1154
1154
|
|
|
1155
1155
|
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
|
+
|
|
1156
1162
|
//se obtiene el alto del headr
|
|
1157
1163
|
h = h - el.children[0].offsetHeight;
|
|
1158
1164
|
el.children[1].style.height = h + "px";
|
|
@@ -1164,10 +1170,10 @@ var script$j = {
|
|
|
1164
1170
|
|
|
1165
1171
|
[].forEach.call(el.children, function (ee, i) {
|
|
1166
1172
|
console.log(i);
|
|
1167
|
-
console.log(ee);
|
|
1173
|
+
console.log(ee);
|
|
1168
1174
|
|
|
1169
|
-
if (i == el.children.length - 1 && ee.tagName == "CENTER" || !ee.classList.contains("v-scrollable") && !ee.classList.contains("v-resize")) {
|
|
1170
|
-
h -= ee
|
|
1175
|
+
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;
|
|
1171
1177
|
} else if (!el2) {
|
|
1172
1178
|
el2 = ee;
|
|
1173
1179
|
console.log(el2);
|