]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Don't use deprecated offset option for .position(). Fixes #8675 - Dialog...
authorScott González <scott.gonzalez@gmail.com>
Tue, 23 Oct 2012 18:49:16 +0000 (14:49 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 23 Oct 2012 18:50:02 +0000 (14:50 -0400)
ui/jquery.ui.dialog.js

index f2e3f945f46dbbf7a8e43e607593d510fbe578f3..c1ac7bc9ef6a68ec0b0063a4aa0c58ad867120d5 100644 (file)
@@ -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( " " )
                                };
                        }