mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-30 12:24:19 +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:
commit
31b9240dd0
2
js/bootstrap-tooltip.js
vendored
2
js/bootstrap-tooltip.js
vendored
@ -212,7 +212,7 @@
|
|||||||
|
|
||||||
, getPosition: function () {
|
, getPosition: function () {
|
||||||
var el = this.$element[0]
|
var el = this.$element[0]
|
||||||
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
|
return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {
|
||||||
width: el.offsetWidth
|
width: el.offsetWidth
|
||||||
, height: el.offsetHeight
|
, height: el.offsetHeight
|
||||||
}, this.$element.offset())
|
}, this.$element.offset())
|
||||||
|
Loading…
Reference in New Issue
Block a user