0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Merge pull request #6737 from openwide-java/fix-tooltip-positioning-for-ie8

Fix tooltip positioning for IE8 broken in 2.3.0
This commit is contained in:
fat-kun 2013-02-05 19:22:34 -08:00
commit 31b9240dd0

View File

@ -212,7 +212,7 @@
, getPosition: function () {
var el = this.$element[0]
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {
width: el.offsetWidth
, height: el.offsetHeight
}, this.$element.offset())