event for when dialog is fully loaded
<p>I am trying to add a jscrollpane to a dialog once the dialog is loaded.  I tried using the <code>dialogopen</code> and <code>dialogfocus</code> events but it seems these trigger too early.  Is there an event I can subscribe to that tells me the dialog is fully loaded and displayed and its safe to call jscrollpane? Right now i'm just adding a half second timeout but that seems hacky and shows the user a broken dialog for a half second. </p>

<p>Any other solutions would also be welcome.   </p>

<pre><code>$("#diagBox").load($(this).attr('href'), function() {
        $dialog.imagesLoaded(function() {

            $dialog.dialog('open');
            $dialog.dialog("option", "position", "center");
            setTimeout(function(){
                $('input, textarea').placeholder();
                $('.scroller').jScrollPane();
                positionElements();
            },500);


        });
    });
</code></pre>
