Position issue in ui.dialog.js and how to resolve it.

Position issue in ui.dialog.js and how to resolve it.


Hi Guys,
In the last version of file ui.dialog.js from SVN, there is a bug.
~~~~~~~~~~~~~~~~~~~~~~~~
line 112~134
            var wnd = $(window), doc = $(document), top = doc.scrollTop(), left
= doc.scrollLeft();
            switch (options.position) {
                case 'center':
                    top += (wnd.height() / 2) - (uiDialog.height() / 2);
                    left += (wnd.width() / 2) - (uiDialog.width() / 2);
                    break;
                case 'top':
                    top += 0;
                    left += (wnd.width() / 2) - (uiDialog.width() / 2);
                    break;
                case 'right':
                    top += (wnd.height() / 2) - (uiDialog.height() / 2);
                    left += (wnd.width()) - (uiDialog.width());
                    break;
                case 'bottom':
                    top += (wnd.height()) - (uiDialog.height());
                    left += (wnd.width() / 2) - (uiDialog.width() / 2);
                    break;
                case 'left':
                    top += (wnd.height() / 2) - (uiDialog.height() / 2);
                    left += 0;
                    break;
            }
~~~~~~~~~~~~~~~~
Here we use $(window).height() and $(window).width() to figure out
the position of the dialog, it's not correct. We should use
document.body.clientHeight and document.body.clientWidth here.
Thanks for your great works, please fix this bug in the next
version. Thanks.