Fix issue 369: step number position with floating tooltip

Fixes issue #369.
See detailed notes in the commit message and the issue.