diff options
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, |