Better positioning of tooltips, fix #1649