Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGuillaume Smet <guillaume.smet@gmail.com>2013-01-29 22:50:13 +0400
committerGuillaume Smet <guillaume.smet@gmail.com>2013-01-29 22:50:13 +0400
commitb7764d8a3399fa8f91d702ac85cbe652fadb6bbe (patch)
tree69d3b2df2274604d9d16b195a4050bee6f23fdcc /js
parentab0c055bc68d64019dcbcc939915c2fff057ab30 (diff)
Fix tooltip positioning for IE8
IE8 defines a placeholder object getBoundingClientRect which breaks the new getPosition() method
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-tooltip.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js
index c23d8267a8..9ba2d1214a 100644
--- a/js/bootstrap-tooltip.js
+++ b/js/bootstrap-tooltip.js
@@ -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())