aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-23 14:49:16 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-23 14:50:02 -0400
commit11effcbd35c7a0b36af2a710b385d741f5849cbf (patch)
treed8de42e703e3861a900ccd8d6cbe7e322e92be26
parent568aec62d977af89a5a1aa0f9dbf1301b8df0ea0 (diff)
downloadjquery-ui-11effcbd35c7a0b36af2a710b385d741f5849cbf.tar.gz
jquery-ui-11effcbd35c7a0b36af2a710b385d741f5849cbf.zip
Dialog: Don't use deprecated offset option for .position(). Fixes #8675 - Dialog: Position with pixels in array doesn't work with back compat disabled.
-rw-r--r--ui/jquery.ui.dialog.js6
1 files changed, 3 insertions, 3 deletions
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( " " )
};
}