fixing a bug in d3-tip.js which did not rescale the box in case of scrolling