This should be reverted in jQuery UI 1.9.
position: {
my: 'center',
at: 'center',
- of: window,
collision: 'fit',
using: $.ui.dialog.prototype.options.position.using
},
position: {
my: 'center',
at: 'center',
- of: window,
collision: 'fit',
// ensure that the titlebar is never outside the document
using: function(pos) {
this.uiDialog
// workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781
.css({ top: 0, left: 0 })
- .position(position);
+ .position($.extend({ of: window }, position));
if (!isVisible) {
this.uiDialog.hide();
}