code: function () {
              if (!this.length) return;
  
              var node = vQ(this[0]),
              // Get *real* offsetParent
                  offsetParent = this.offsetParent(),
              // Get correct offsets
                  offset = this.offset(),
                  parentOffset = rootNodeRE.test(offsetParent[0].nodeName) ? {top: 0, left: 0} : offsetParent.offset();
  
              // Subtract element margins
              // note: when an element has margin: auto the offsetLeft and marginLeft
              // are the same in Safari causing offset.left to incorrectly be 0
              offset.top -= parseFloat(node.css('margin-top')) || 0;
              offset.left -= parseFloat(node.css('margin-left')) || 0;
  
              // Add offsetParent borders
              parentOffset.top += parseFloat(offsetParent.css('border-top-width')) || 0;
              parentOffset.left += parseFloat(offsetParent.css('border-left-width')) || 0;
  
              // Subtract the two offsets
              return {
                  top: offset.top - parentOffset.top,
                  left: offset.left - parentOffset.left
              };
          }
docs: position
  @returns {{top: number, left: number}}