Issues with Dialog shadow (in RC6) not resizing properly on removal/change of content in dialog

Issues with Dialog shadow (in RC6) not resizing properly on removal/change of content in dialog


When I submit the form inside a dialog I hide the form inside the
dialog and show a loading message, when I do this the shadow doesn't
resize properly - but it updates fine if I move the dialog with the
mouse.
So I tried passing the shadow: false option to the dialog and
everything works fine, until I try to move the dialog by dragging the
title bar, which throws an error:
this.shadow is undefined
/js/jquery/jquery-ui-1.6rc6.min.js
Line 97
I would really like to have the shadow but it looks awful at the
moment. Is there anyway to force the shadow or dialog to re-render
itself as that will do for me right now.