fix Tip positions for elements with border

merge after #39 first: it fixes the example page and it's possible to see the problem better