8000 Dialog: Don't use deprecated offset option for .position(). Fixes #86… · faroncoder/jquery-ui@11effcb · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 11effcb

Browse files
committed
Dialog: Don't use deprecated offset option for .position(). Fixes #8675 - Dialog: Position with pixels in array doesn't work with back compat disabled.
1 parent 568aec6 commit 11effcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.ui.dialog.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,9 @@ $.widget("ui.dialog", {
509509
});
510510

511511
position = {
512-
my: myAt.join( " " ),
513-
at: myAt.join( " " ),
514-
offset: offset.join( " " )
512+
my: myAt[0] + (offset[0] < 0 ? offset[0] : "+" + offset[0]) + " " +
513+
myAt[1] + (offset[1] < 0 ? offset[1] : "+" + offset[1]),
514+
at: myAt.join( " " )
515515
};
516516
}
517517

0 commit comments

Comments
 (0)
0