possible fix for #14013
refactor/reformat Tooltip.getPosition per @fat's feedback
Merge pull request #14015 from twbs/possible-14013-fix

Possible fix for #14013