Fixes balloon tooltips

Balloon tooltips will show up above the hovered element if necessary
Merge pull request #1207 from max-m/tooltip-update

Fixes balloon tooltips