Skip to content
Permalink
Browse files

Dialog: workaround for positioning bug.

  • Loading branch information...
scottgonzalez committed Jan 15, 2010
1 parent 4863732 commit c313289d0034fa3f94d9d3c19f65c2f4cff58190
Showing with 10 additions and 7 deletions.
  1. +10 −7 ui/jquery.ui.dialog.js
@@ -426,13 +426,16 @@ $.widget("ui.dialog", {
if (!isVisible) {
this.uiDialog.show();
}
this.uiDialog.position({
my: myAt.join(' '),
at: myAt.join(' '),
offset: offset.join(' '),
of: window,
collision: 'fit'
});
this.uiDialog
// workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781
.css({ top: 0, left: 0 })
.position({
my: myAt.join(' '),
at: myAt.join(' '),
offset: offset.join(' '),
of: window,
collision: 'fit'
});
if (!isVisible) {
this.uiDialog.hide();
}

0 comments on commit c313289

Please sign in to comment.
You can’t perform that action at this time.