easyui的dialog的width或者height超出父容器会报:
Uncaught RangeError: Maximum call stack size exceeded的错误
可以在dialog的onMove事件中加入以下方法
$('#exp').dialog({
onMove: function() {
var parentObj = $(this).panel('panel').parent();
var height = $(this).panel('options').height;
var parentHeight = parentObj.height();
if(height>parentHeight){
$(this).window('resize',{
height:parentHeight
});
}
}
});