src/hft/scripts/misc/misc.js
function(element) {
    var r = { x: element.offsetLeft, y: element.offsetTop };
    if (element.offsetParent) {
      var tmp = getAbsolutePosition(element.offsetParent);
      r.x += tmp.x;
      r.y += tmp.y;
    }
    return r;
  }
function(element) {
    var r = { x: element.offsetLeft, y: element.offsetTop };
    if (element.offsetParent) {
      var tmp = getAbsolutePosition(element.offsetParent);
      r.x += tmp.x;
      r.y += tmp.y;
    }
    return r;
  }
function ( element ) { var r = { x : element . offsetLeft , y : element . offsetTop } ; if ( element . offsetParent ) { var tmp = getAbsolutePosition ( element . offsetParent ) ; r . x += tmp . x ; r . y += tmp . y ; } return r ; }
Returns the absolute position of an element for certain browsers.
@param {HTMLElement} element The element to get a position
for.
@returns {Object} An object containing x and y as the
absolute position of the given element.
@memberOf module:Misc
Returns the absolute position of an element for certain browsers .