code: function (element) {
              var positionStyle = this.getStyle(element, "position");
              var isAbsolute = positionStyle === "absolute";
              var isFixed = positionStyle === "fixed";
              var position = {};
              if (isAbsolute) {
                  position.left = this.getStylePx(element, "left", null);
                  position.top = this.getStylePx(element, "top", null);
              }
              if (position.left == null || position.top == null) {
                  var offsetParent = isFixed ? Aria.$window.document.body : element.offsetParent;
                  var offsetParentPosition = this.calculatePosition(offsetParent);
                  var elementPosition = this.calculatePosition(element);
                  if (position.left == null) {
                      var borderLeft = this.getStylePx(offsetParent, "borderLeftWidth", 0);
                      position.left = elementPosition.left - offsetParentPosition.left + offsetParent.scrollLeft
                              - borderLeft;
                  }
                  if (position.top == null) {
                      var borderTop = this.getStylePx(offsetParent, "borderTopWidth", 0);
                      position.top = elementPosition.top - offsetParentPosition.top + offsetParent.scrollTop - borderTop;
                  }
              }
  
              return position;
          }
docs: Get the offset top and left of an element (relative to its offset parent), based either on the style or the
  offset element. Useful to manage some internet explorer offset issues.
  @param {HTMLElement} element Element whose offset is requested.
  @return {Object} JSON with the top ad left properties.
  @public