Question

Does anybody know how to make the jQuery dialog non-resizable ? At the moment, I call this:

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')
Was it helpful?

Solution

Use the resizable option

 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');

OTHER TIPS

Or simply:

$('#mydiv').dialog({resizable: false}); 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top