WIKI-930 use offset() instead of position() to get top value of element correctly