Don't add another <a/> element, reuse existing <td/>...

... to be configured as the tooltip trigger.
Fix offsets for tooltips of height=max.

Also, fix the case with position 'rm' where the tooltip is wider than the
available window space.