Modal Dialog opening in the same place

Modal Dialog opening in the same place

Currently, if you have a click even top open a modal modal dialog, and then you move that modal dialog, and then fire of the event to open the original modal dialog, it will reopen in the position it was moved to. This was not the behavior I was looking for, so I had to implement an addition function to my click event to reset the position.

It would be nice if there was an option to have the position be the same every time you open it, and not the position it was moved to.

After a lot of looking around the web, here is the simplest solution I found to accomplish my desired behavior:

        $('a#click-me-to-open-dialog').click(function() {
            $('#myDialogueStuff').dialog('option','position','center'); // this line being the way to defeat the current behavior
            $('#myDialogueStuff').dialog('open');
        });

I think it could be easy to implement as an additional option, but I am not the smart one here, I just use this awesome tool :)

Thanks for your consideration!