Use computed style, as height() and outerHeight() stops scrolling momentarily
Accept selector for topOffset
Minified version