twitter/bootstrap — pull request #7988 by nonumber (2013-05-25 11:33:13+00:00)
Title: Auto positioning of tooltip

This patch changes the positioning of the tooltip when there is no room for the tooptip in the position it would normally show.

As discussed here: https://github.com/twitter/bootstrap/issues/7399