Improved label clipping and positioning

Clip labels that are narrower than their thread.
Keep labels on screen as long as there is room in the thread to do so.