mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Position: add target property to feedback argument, to allow additional calculation in user's using callback
This commit is contained in:
3
ui/jquery.ui.position.js
vendored
3
ui/jquery.ui.position.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user