Correct Bootstrap tooltip positioning for top and bottom options. Fixes #5137.