Commit 0268b41c authored by Heinrich Fenkart's avatar Heinrich Fenkart
Browse files

Fix IE8 reporting type object for `getBoundingClientRect`

parent 05ddea31
5 merge requests!28721Hot test,!16605Test pull please ignore,!22103test,!14090Fix IE8 problems with unit tests,!25326Adjust examples
Showing with 1 addition and 1 deletion
+1 -1
......@@ -321,7 +321,7 @@
var isBody = el.tagName == 'BODY'
var isSvg = window.SVGElement && el instanceof window.SVGElement
var elRect = typeof el.getBoundingClientRect == 'function' ? el.getBoundingClientRect() : null
var elRect = el.getBoundingClientRect ? el.getBoundingClientRect() : null
var elOffset = isBody ? { top: 0, left: 0 } : $element.offset()
var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }
var outerDims = isSvg ? {} : {
......
Supports Markdown
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