isobit-ui 0.1.43 → 0.1.46
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 +19 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.1.
|
|
2
|
+
* isobit-ui v0.1.46
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3972,19 +3972,33 @@ var script$6 = {
|
|
|
3972
3972
|
}
|
|
3973
3973
|
},
|
|
3974
3974
|
resize: function resize(e) {
|
|
3975
|
-
//console.log('form.resize');
|
|
3976
3975
|
var me = this,
|
|
3977
3976
|
el = me.$el,
|
|
3978
3977
|
h = e.height;
|
|
3979
|
-
el.style.height = h + 'px';
|
|
3978
|
+
el.style.height = h + 'px'; //si tiene header
|
|
3980
3979
|
|
|
3981
3980
|
if (el.children[1]) {
|
|
3981
|
+
//se obtiene el alto del headr
|
|
3982
3982
|
h = h - el.children[0].offsetHeight;
|
|
3983
3983
|
el.children[1].style.height = h + 'px';
|
|
3984
|
-
el.children[1].style.overflowY = 'auto';
|
|
3984
|
+
el.children[1].style.overflowY = 'auto'; //obtien el form
|
|
3985
|
+
|
|
3985
3986
|
el = el.children[1].children[0];
|
|
3986
3987
|
el.style.height = h + 'px';
|
|
3987
|
-
el
|
|
3988
|
+
console.log(el);
|
|
3989
|
+
var el2; //,style2;
|
|
3990
|
+
|
|
3991
|
+
el.children.forEach(function (ee) {
|
|
3992
|
+
if (!el2) {
|
|
3993
|
+
//style2 = window.getComputedStyle(ee);
|
|
3994
|
+
if (!ee.classList.contains('v-scrollable') && ee.classList.contains('v-resize')) {
|
|
3995
|
+
h -= ee.offsetHeight + 2;
|
|
3996
|
+
} else {
|
|
3997
|
+
el2 = ee;
|
|
3998
|
+
}
|
|
3999
|
+
}
|
|
4000
|
+
});
|
|
4001
|
+
el = el2; //Se espera el sea una tabla
|
|
3988
4002
|
} else {
|
|
3989
4003
|
el = el.children[0];
|
|
3990
4004
|
el.style.height = h + 'px';
|