Simplifies floating header vertical offset

Floating header vertical offset scroll height (the scroll distance at
which the header starts to float) was being calculated based on the
position of the floating header. This commit changes that to the height
of the content header above it, which simplifies the calculation.