mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: workaround for positioning bug.
This commit is contained in:
parent
486373239f
commit
c313289d00
17
ui/jquery.ui.dialog.js
vendored
17
ui/jquery.ui.dialog.js
vendored
@ -426,13 +426,16 @@ $.widget("ui.dialog", {
|
|||||||
if (!isVisible) {
|
if (!isVisible) {
|
||||||
this.uiDialog.show();
|
this.uiDialog.show();
|
||||||
}
|
}
|
||||||
this.uiDialog.position({
|
this.uiDialog
|
||||||
my: myAt.join(' '),
|
// workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781
|
||||||
at: myAt.join(' '),
|
.css({ top: 0, left: 0 })
|
||||||
offset: offset.join(' '),
|
.position({
|
||||||
of: window,
|
my: myAt.join(' '),
|
||||||
collision: 'fit'
|
at: myAt.join(' '),
|
||||||
});
|
offset: offset.join(' '),
|
||||||
|
of: window,
|
||||||
|
collision: 'fit'
|
||||||
|
});
|
||||||
if (!isVisible) {
|
if (!isVisible) {
|
||||||
this.uiDialog.hide();
|
this.uiDialog.hide();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user