Этот код работает для меня.
var child_top = $("#parent_div").scrollTop() + $("#child_div").offset().top