Problem with height and vertical scoll bar in Dialog
Hello everybody, I've developped a mini-intranet and I've used for that some jQuery components especially UI Dialog.
It works fine but sometimes I've a problem with Dialog I show. The problem is that the dialog's height is bocoming very important and it loose the vertical scroll bar.
This is the function which call the dialog
-
function load_sub_jquery(url, specialite, var_sub_exp, titre)
{
$('#CMP_ajax_recipient').load('view/'+url+'.php','SPECIALITE='+specialite+'&VAR='+var_sub_exp);
$('#CMP_ajax_recipient').dialog({
modal: true,
autoOpen: false,
position: 'center',
height:600,
width:800,
maxHeight:500,
maxWidth:8500,
resizable:false,
buttons: {
"Retour": function() {
$(this).html("");
$(this).dialog("close");
}
}
});
$('#CMP_ajax_recipient').dialog('option', "title", titre);
$('#CMP_ajax_recipient').dialog('open');
}
Note that the Dialog content is variable and this problem is not usully present. I remark that it become after many calls but I'm not sure that this the real problem.
Does anyone encountred this problem and can help me to resolve it.
Many thanks in advance.
Best regards.