function applyAbsolutePositionFix(xPos, yPos) {
  var topScrolled = 0;
  var containerLeftMargin = 0;
  var position = {};
  var contentContainer = document.querySelector('.tst-content-container');

  containerLeftMargin = Math.round(parseFloat(window
                    .getComputedStyle(contentContainer, null)
                    .getPropertyValue('margin-left')));

  topScrolled = (window.pageYOffset !== undefined) ? window.pageYOffset 
              : (document.documentElement || document.body.parentNode || document.body).scrollTop;
  position.x =  xPos - containerLeftMargin;
  position.y =  yPos + topScrolled;

  return position;
}
// margin size and topScrolled are used with absolute tooltip position,
margin size and topScrolled are used with absolute tooltip position.
margin size and topScrolled are used with absolute tooltip position .
function applyAbsolutePositionFix(xPos, yPos) {
  var topScrolled = 0;
  var containerLeftMargin = 0;
  var position = {};
  var contentContainer = document.querySelector('.tst-content-container');
  containerLeftMargin = Math.round(parseFloat(window
                    .getComputedStyle(contentContainer, null)
                    .getPropertyValue('margin-left')));
  topScrolled = (window.pageYOffset !== undefined) ? window.pageYOffset 
              : (document.documentElement || document.body.parentNode || document.body).scrollTop;
  position.x =  xPos - containerLeftMargin;
  position.y =  yPos + topScrolled;
  return position;
}
function applyAbsolutePositionFix ( xPos , yPos ) { var topScrolled = 0 ; var containerLeftMargin = 0 ; var position = { } ; var contentContainer = document . querySelector ( '.tst-content-container' ) ; containerLeftMargin = Math . round ( parseFloat ( window . getComputedStyle ( contentContainer , null ) . getPropertyValue ( 'margin-left' ) ) ) ; topScrolled = ( window . pageYOffset !== undefined ) ? window . pageYOffset : ( document . documentElement || document . body . parentNode || document . body ) . scrollTop ; position . x = xPos - containerLeftMargin ; position . y = yPos + topScrolled ; return position ; }
margin size and topScrolled are used with absolute tooltip position,
margin size and topScrolled are used with absolute tooltip position