Commit b7764d8a authored by Guillaume Smet's avatar Guillaume Smet

Fix tooltip positioning for IE8

IE8 defines a placeholder object getBoundingClientRect which breaks the new getPosition() method
parent ab0c055b
......@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment