Calculate position of #tail element rather than setting position fixed

This change ought to be commited along with 535a873, but due to a bit of
chaos with reverts and merging it's not in the master branch. This fixes
a position calculation of #tail element on the log to work even with
right sidebar (which is a problem on Travis Pro)