Modal Dialog Resize with the window

Modal Dialog Resize with the window


Hello,
First of all, thanks for this library, is a great tool!
I need to show a modal popup which can be resized as the containing
browser window is resized, can I do that using the dialog method?
I have this code to show a hidden div with a flash content inside, it
opens a modal dialog with certain dimensions, but when the browser
window is resized, the dialog window needs to be resized too, is this
possible?
$(function() {
$("#flashcontent").dialog({
             bgiframe: true,
             height: 768,
             width: 1024,
             modal: true,
             autoOpen: false,
             title: "Editing Maps from jQuery UI"
         });
         $("#open-link").click(function(){
         $("#flashcontent").dialog("open");
         ShowMap();
         });
     });
Thanks in advance!
Sebastian