views:

39

answers:

2

anybody knows how to make the jquery dialog not resizable ? I call it like this atm :

 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');
+4  A: 

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');
rahul
+1  A: 

Add resizable: false option.

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