mirror of https://github.com/layui/layui
修复 table 单元格展开再收缩后,当列通过拖拽改变过宽度,列存在概率性错位的问题
parent
2d8b2bcc5e
commit
28347fcf8f
|
@ -2541,7 +2541,9 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
|||
that.setRowActive(index, [ELEM_EXPAND, ELEM_HOVER].join(' '), true); // 移除单元格展开样式
|
||||
that.cssRules(key, function(item){
|
||||
item.style.width = $this.data('cell-width'); // 恢复单元格展开前的宽度
|
||||
that.resize(); // 滚动条补丁
|
||||
setTimeout(function(){
|
||||
that.resize(); // 滚动条补丁
|
||||
});
|
||||
});
|
||||
$this.remove();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue