修复table的tips问题 (#68)

pull/58/merge
Yii.Guxing 7 years ago committed by 贤心
parent 5919c5683c
commit 5841f69e0f

@ -841,7 +841,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
} }
//如果出现省略,则可查看更多 //如果出现省略,则可查看更多
if(elemCell.prop('scrollWidth') > elemCell.outerWidth()){ if(Math.round(elemCell.prop('scrollWidth')) > Math.round(elemCell.outerWidth())){
that.tipsIndex = layer.tips([ that.tipsIndex = layer.tips([
'<div class="layui-table-tips-main" style="margin-top: -'+ (elemCell.height() + 16) +'px;'+ function(){ '<div class="layui-table-tips-main" style="margin-top: -'+ (elemCell.height() + 16) +'px;'+ function(){
if(config.size === 'sm'){ if(config.size === 'sm'){

Loading…
Cancel
Save