I am trying to squeeze the entire height of a dialog box I created with jQuery UI down to a height of 0px once the dialog is created. I cannot use the dialog's "height" property, and set that to开发者_开发知识库 0, as I need everything to be squished down.
Here is a watered-down version of my code. Could some one point out where I am going wrong?
$('<div class="myDialog" title="Test"></div>').dialog({
'create' : function() {
$(this).parent().css({
'height' : '0'
});
})
});
Thank you for your time.
To get the widget
do this:
$(this).dialog('widget').css({
'height' : '0'
});
This edits the dialog as a whole.
精彩评论