Created by: muan
Tooltip will be positioned wrong when there are position-specific tooltip styles(.tooltip.right
, .tooltip.right .tooltip-inner
with styles that change the box-model size), because the offset is calculated before the position classes(right, top, bottom, left) were added.
As shown: http://jsbin.com/esuwuj/10/edit
Simply adding the position class before calculating offset solves this issue.