Commit 245cd9dd authored by 季圣华's avatar 季圣华
Browse files

修复公共js的bug

parent 4d613006
...@@ -57,11 +57,13 @@ ...@@ -57,11 +57,13 @@
} }
function dgResize() { function dgResize() {
var searchTabHeight = $('#searchTable').height(); var searchTabHeight = $('#searchTable').height();
if($('#tableData').length) {
$('#tableData').datagrid('resize', { $('#tableData').datagrid('resize', {
width: $(window).width() - 6, width: $(window).width() - 6,
height: $(window).height() - searchTabHeight -46 height: $(window).height() - searchTabHeight -46
}); });
} }
}
$(window).resize(function () { $(window).resize(function () {
dgResize(); dgResize();
}); });
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment