fix for autoResize in dialog with button pane

fix for autoResize in dialog with button pane


Hello,
I've got a dialog working, and I notice now that autoResize seems to
be working to make the div that is contained by my dialog fit to the
inside of the dialog properly...very nice. However, the problem I've
got now is that it doesn't account for the height of the button pane
if it is visible, so if I'm using the button pane, I have to disable
autoResize, and implement the same workaround I've been using with the
resize event...
So...here's my fix for the size method, which includes the button pane
in the height calculation (starting at line 240):
    size: function() {
        var container = this.uiDialogContainer,
            titlebar = this.uiDialogTitlebar,
            content = this.element,
            buttonpane = this.uiDialogButtonPane;
            tbMargin = parseInt(content.css('margin-top'),10) +
parseInt(content.css('margin-bottom'),10),
            lrMargin = parseInt(content.css('margin-left'),10) +
parseInt(content.css('margin-right'),10);
        content.height(container.height() - titlebar.outerHeight() -
buttonpane.outerHeight() - tbMargin);
        content.width(container.width() - lrMargin);
    },