diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index 49b5f7286a07..3cbfb2d41046 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -192,10 +192,7 @@ } , getPosition: function (inside) { - return $.extend({}, (inside ? {top: 0, left: 0} : this.$element.offset()), { - width: this.$element[0].offsetWidth - , height: this.$element[0].offsetHeight - }) + return $.extend({}, this.$element[0].getBoundingClientRect(), (inside ? {top: 0, left: 0} : {})) } , getTitle: function () { @@ -267,4 +264,4 @@ , template: '
' } -}( window.jQuery ); \ No newline at end of file +}( window.jQuery );