diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-04-20 10:10:02 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-04-20 10:10:02 -0400 |
commit | a9f1ffb4fd9b6953318e262b056c3a534a83e462 (patch) | |
tree | 387a38cd63cd74c15b8475873180c5f48a97edb2 /ui/jquery.ui.position.js | |
parent | 3b73177d0c5e131d4825080efbd203b2449b2f0f (diff) | |
download | jquery-ui-a9f1ffb4fd9b6953318e262b056c3a534a83e462.tar.gz jquery-ui-a9f1ffb4fd9b6953318e262b056c3a534a83e462.zip |
Position: Simplify border calculations for feedback.
Diffstat (limited to 'ui/jquery.ui.position.js')
-rw-r--r-- | ui/jquery.ui.position.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 8f5601c28..31920c161 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -236,9 +236,9 @@ $.fn.position = function( options ) { // adds feedback as second argument to using callback, if present using = function( props ) { var left = targetOffset.left - props.left, - right = (targetOffset.left + targetWidth) - (props.left + elemWidth), + right = left + targetWidth - elemWidth, top = targetOffset.top - props.top, - bottom = (targetOffset.top + targetHeight) - (props.top + elemHeight), + bottom = top + targetHeight - elemHeight, feedback = { target: { element: target, |