Fix offsetTop calculation when scroll parent is not window