twitter/bootstrap — pull request #5527 by m157y (2012-10-15 15:22:03+00:00)
Title: Use data-position or options.position to handle tooltips/popovers related to fixed elements

It's like one of pull-requests before: https://github.com/twitter/bootstrap/pull/4200
But with small differences. First of all, this fix respects options ( $().tooltip({position: 'fixed'}) ) and second thing, that this is support popovers.
I was have this problem with popovers and tried some fixes from google, but everything was wrong. Pull request by ericmatthys was good, but doesn't support popovers, so i decided slightly extend it.