$(function() {
function using( position, feedback ) {
$(this)
- .offset( position )
+ .css( position )
.text( feedback.horizontal + " " + feedback.vertical + " " + feedback.important )
.removeClass( "left right top bottom center middle vertical horizontal" )
.addClass( feedback.horizontal )
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: {
},
element: {
element: elem,
- left: props.left,
- top: props.top,
+ left: position.left,
+ top: position.top,
width: elemWidth,
height: elemHeight
},