Jquery UI Dialog animation complete

Jquery UI Dialog animation complete

I am using jquery ui dialog and the width and height are dynamic (based on viewport size). Since the dialog open is animated (using option show: 'slow'), I need to know when the dialog animation has completed so I can then calculate widths/heights for child containers within the dialog. The problem is if I try to get the dialog's width and height on $(document).ready to do my calculations for w & h of the child containers, the dialog animation has not completed yet. If there was an event like 'openStop', I could bind to the 'openStop' event and wait to do my w & h calculations until the event has fired. Is there a way I can tell whether the dialog open animation has completed?

Your help is much appreciated.

jquery rocks!