1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Fix tooltip positioning for IE8

IE8 defines a placeholder object getBoundingClientRect which breaks the new getPosition() method
This commit is contained in:
Guillaume Smet 2013-01-29 19:50:13 +01:00
parent ab0c055bc6
commit b7764d8a33

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())