Fix offsets for tooltips of height=max.
Fix offsets for tooltips of height=max.

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

Patternslib/Patterns-archive,Patternslib/Patterns-archive,Patternslib/Patterns-archive