Dialog boxes with effect; stuck shadows

Dialog boxes with effect; stuck shadows


Hi there,
i have got the dialog boxes working, but if i add a show or hide
effect to the dialog box, the shadow seems to not follow the dialog
box? The error shown is "this.uiDialog.hide(this.options.hide) is
null". Is this a bug or am i doing something wrong?
$(document).ready(function(){
    //$("#myDialog").dialog();
    $("#myDialog").dialog({
        "autoOpen":false,
        buttons:{"Ok":function(){ alert('ok clicked');},"close":function(){ $
(this).dialog("close").submit(); }} ,
        "hide":"fadeOut",
        "closeOnEscape":true,
        "dragStop":function(event,ui){alert('Done dragging')}
    });
Thanks
Vru