From 1779d86b40ef2031e436710279ff09288bff1815 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=CC=88rn=20Zaefferer?= Date: Thu, 12 Apr 2012 17:33:05 +0200 Subject: [PATCH] Position: add target property to feedback argument, to allow additional calculation in user's using callback --- ui/jquery.ui.position.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5