I have tried to use this code for maximizing the dialog, but it does not work. One addition I would like is to change the cursor style when we hover over the title bar.
var dlg = $('#dlg');
dlg.dialog('header').bind('dblclick', function(e){
var opts = dlg.dialog('options');
if (opts.maximized){
dlg.dialog('restore');
} else {
dlg.dialog('maximize');
}
})
Please help.
Regards,
Dove