如何使jQuery UI对话框不能resize

有谁知道如何使jQuery对话框不可resize? 目前我称之为:

var elem = $("#mydiv"); elem.dialog({ modal: true, title: 'title', buttons: { Ok: function() { $(this).dialog('close'); } // end function for Ok button } // end buttons }); // end dialog elem.dialog('open') 

使用可resize的选项

  var elem = $("#mydiv"); elem.dialog({ modal: true, resizable: false, title: 'title', buttons: { Ok: function() { $(this).dialog('close'); } //end function for Ok button }//end buttons }); // end dialog elem.dialog('open'); 

或者干脆:

 $('#mydiv').dialog({resizable: false});