Fix issue 20

Take into consideration the width of the border when drawing the popover. Otherwise, if the border is more than a few pixel wide, it would get cut around the arrow (cf issue 20 for screenshots)