src/ContextualPopup/ContextualPopup.js
function (node) {
		var r = this.getBoundingRect(node);

		var pageYOffset = (window.pageYOffset === undefined) ? document.documentElement.scrollTop : window.pageYOffset;
		var pageXOffset = (window.pageXOffset === undefined) ? document.documentElement.scrollLeft : window.pageXOffset;
		var rHeight = (r.height === undefined) ? (r.bottom - r.top) : r.height;
		var rWidth = (r.width === undefined) ? (r.right - r.left) : r.width;

		return {top: r.top + pageYOffset, left: r.left + pageXOffset, height: rHeight, width: rWidth};
	}
function (node) {
		var r = this.getBoundingRect(node);

		var pageYOffset = (window.pageYOffset === undefined) ? document.documentElement.scrollTop : window.pageYOffset;
		var pageXOffset = (window.pageXOffset === undefined) ? document.documentElement.scrollLeft : window.pageXOffset;
		var rHeight = (r.height === undefined) ? (r.bottom - r.top) : r.height;
		var rWidth = (r.width === undefined) ? (r.right - r.left) : r.width;

		return {top: r.top + pageYOffset, left: r.left + pageXOffset, height: rHeight, width: rWidth};
	}
function ( node ) { var r = this . getBoundingRect ( node ) ; var pageYOffset = ( window . pageYOffset === undefined ) ? document . documentElement . scrollTop : window . pageYOffset ; var pageXOffset = ( window . pageXOffset === undefined ) ? document . documentElement . scrollLeft : window . pageXOffset ; var rHeight = ( r . height === undefined ) ? ( r . bottom - r . top ) : r . height ; var rWidth = ( r . width === undefined ) ? ( r . right - r . left ) : r . width ; return { top : r . top + pageYOffset , left : r . left + pageXOffset , height : rHeight , width : rWidth } ; }
Calculates the position of the popup relative to the page.

@param {Element} node
@private
Calculates the position of the popup relative to the page .