From: Scott González Date: Tue, 23 Oct 2012 18:49:16 +0000 (-0400) Subject: Dialog: Don't use deprecated offset option for .position(). Fixes #8675 - Dialog... X-Git-Tag: 1.9.1~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=11effcbd35c7a0b36af2a710b385d741f5849cbf;p=jquery-ui.git Dialog: Don't use deprecated offset option for .position(). Fixes #8675 - Dialog: Position with pixels in array doesn't work with back compat disabled. --- diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index f2e3f945f..c1ac7bc9e 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -509,9 +509,9 @@ $.widget("ui.dialog", { }); position = { - my: myAt.join( " " ), - at: myAt.join( " " ), - offset: offset.join( " " ) + my: myAt[0] + (offset[0] < 0 ? offset[0] : "+" + offset[0]) + " " + + myAt[1] + (offset[1] < 0 ? offset[1] : "+" + offset[1]), + at: myAt.join( " " ) }; }