Set includeMargin to true to force to include the element's margin in the calculation for outerHeight() and outerWidth() functions.
Set includeMargin to true to force to include the element's margin in the calculation for outerHeight() and outerWidth() functions.

Also, we need to subtract 'margin-left' for x and 'margin-top' for y, on this way we keep the positions for each area.

jcgalindo/jquery-nearest,jcgalindo/jquery-nearest