aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.position.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-04-12 17:33:05 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-04-12 17:33:05 +0200
commit1779d86b40ef2031e436710279ff09288bff1815 (patch)
tree1a957cd55a1f8ebc4c9d48ec5bc574a409083dbc /ui/jquery.ui.position.js
parent2154ca552aa588c8bf5306707ffcddabd1b25820 (diff)
downloadjquery-ui-1779d86b40ef2031e436710279ff09288bff1815.tar.gz
jquery-ui-1779d86b40ef2031e436710279ff09288bff1815.zip
Position: add target property to feedback argument, to allow additional calculation in user's using callback
Diffstat (limited to 'ui/jquery.ui.position.js')
-rw-r--r--ui/jquery.ui.position.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js
index c5c02aa1d..76b9cca21 100644
--- a/ui/jquery.ui.position.js
+++ b/ui/jquery.ui.position.js
@@ -227,7 +227,8 @@ $.fn.position = function( options ) {
bottom = (targetOffset.top + targetHeight) - (props.top + elemHeight),
feedback = {
horizontal: right < 0 ? "left" : left > 0 ? "right" : "center",
- vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle"
+ vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle",
+ target: target
},
max = Math.max,
abs = Math.abs;