$("#body").ligerLayout({
leftWidth: 280,
centerWidth: '100%',
minLeftWidth:150,
onLeftToggle:function(){
//收缩、展开左边菜单事件
//$("#body").ligerLayout()setLeftCollapse(true);
},
onEndResize:function(parm,e){
if(parm.direction != ''){
//刷新liger.layout
$("#center").find(".l-layout").each(function(){
$(this).ligerLayout()._onResize();//**关键代码,刷新布局
});
//刷新liger.grid
$("#center").find(".bs-grid").each(function(){
$(this).ligerGrid()._onResize();//**关键代码,刷新表格
});
//刷新easyui.layout
$("#center").find(".easyui-layout").each(function(){
var width = $(this).parent().width();
$(this).layout({
width:width,
height:'100%'
});
});
}
}
});