question about dialog

question about dialog


Hi all
I found a problem about dialog. No matter how I set the width and
height for the dialog, the dialog container size is right. But the
size of ui-dialog-content is always like height:187px, width: 300px.
My coding is as following:
var dlg_u = $(<div id="dlg_u"></div>).dialog({
        autoOpen: false,
         resizable: false,
modal: true,
open: function(){
    dlg_u.data('title.dialog', cij.upd[cij.cur_table].title);
    dlg_u.data('width.dialog', cij.upd[cij.cur_table].width);
    dlg_u.data('height.dialog', cij.upd[cij.cur_table].height);
    fetch_dlg_u_data(cij.upd[cij.cur_table].action);
    },
    close: function(){
        if(cij.upd[cij.cur_table].updated){
            cij.upd[cij.cur_table].updated = false;
            refresh_page();
        }else{
            var obj =(cij.cur_table == 1? $('#list_body'): '#detail_body');
            obj.find('[name=sel_list_rec]:checked').focus();
        }
    },
buttons: {
    Update: function(){submit2_update(cij.upd
[cij.cur_table].action);},
    Cancel: function(){$(this).dialog('close');}
}
    });//--- dlg_u