aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-04-20 11:02:50 -0400
committerScott González <scott.gonzalez@gmail.com>2012-04-20 11:02:50 -0400
commit2cf9948cadf45a24c591d6f7232f2470b4d9743e (patch)
treea253dbd79ac78d9b47edaae486d684a6ae454c76 /ui
parent22b7f9a8196e0927bd993edd2ca3d1b1ef7bd79d (diff)
downloadjquery-ui-2cf9948cadf45a24c591d6f7232f2470b4d9743e.tar.gz
jquery-ui-2cf9948cadf45a24c591d6f7232f2470b4d9743e.zip
Position: Use offsets for all calculations in feedback API.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.position.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js
index bba4dd4e6..b8764f2bb 100644
--- a/ui/jquery.ui.position.js
+++ b/ui/jquery.ui.position.js
@@ -235,9 +235,9 @@ $.fn.position = function( options ) {
if ( options.using ) {
// adds feedback as second argument to using callback, if present
using = function( props ) {
- var left = targetOffset.left - props.left,
+ var left = targetOffset.left - position.left,
right = left + targetWidth - elemWidth,
- top = targetOffset.top - props.top,
+ top = targetOffset.top - position.top,
bottom = top + targetHeight - elemHeight,
feedback = {
target: {
@@ -249,8 +249,8 @@ $.fn.position = function( options ) {
},
element: {
element: elem,
- left: props.left,
- top: props.top,
+ left: position.left,
+ top: position.top,
width: elemWidth,
height: elemHeight
},