I have a div (say div1) that contains two drop-down windows and a form that has one other div (say div2). I defined this div1 as a jquery dialog. If you change the first drop down, another drop-down menu will be laid out and when you change the second drop-down list, div2 will be loaded with the result of the html call to ajax.
Now I close the dialog with the close button, and then when I try to open the dialog (div1), the height of the dialog has been reduced below the specified height. If I open a dialog without changing the second drop-down menu, it works fine. Only when onchange occurs in the second drop-down menu does the dialog box become compressed.
JQuery Dialog Open div1:
$("#fileDoc").dialog({
bgiframe: true,
autoOpen: false,
height: 680,
width: 800,
modal: true,
resizable: false
});
JQuery dialog close div1:
$('#fileDoc').dialog('close');
jQuery ajax causes the html to load in div2:
$("#doc").html(data);
I am using jQuery 1.4.4 and UI 1.8.2.
source
share