mirror of https://github.com/layui/layui
update
parent
1ebe1e9be7
commit
860ce7bbf5
|
@ -2945,11 +2945,12 @@ layui.define(['lay', 'i18n', 'laytpl', 'laypage', 'form', 'util'], function(expo
|
||||||
var rightTrs = that.layFixRight.find('.layui-table-body>table>tbody>tr');
|
var rightTrs = that.layFixRight.find('.layui-table-body>table>tbody>tr');
|
||||||
|
|
||||||
tableElem.find('>tbody>tr').each(function (i) {
|
tableElem.find('>tbody>tr').each(function (i) {
|
||||||
|
var newHeight = that.getElementSize(this).height;
|
||||||
if (leftTrs.length) {
|
if (leftTrs.length) {
|
||||||
leftTrs.eq(i).height(that.getElementSize(this).height);
|
leftTrs.eq(i).height(newHeight);
|
||||||
}
|
}
|
||||||
if (rightTrs.length) {
|
if (rightTrs.length) {
|
||||||
rightTrs.eq(i).height(that.getElementSize(this).height);
|
rightTrs.eq(i).height(newHeight);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue