The height relative to the 8ft length will be in the same proportion as the area of the 'filled' portion of the cross-sectional (circle) area while horizontal.
The part that is filled is a segment of the circle, plus two right triangles that fill in the 'wedge'
![]()
So the height when the cylinder is vertical is:
Sorry for the scattered format, all the information is there... There may be more optimal ways to compute the answer.