Get the relative top rather than the absolute top.
Merge pull request #616 from tim-schilling/fix-top-584

Get the relative top rather than the absolute top.