Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
0268b41c
Commit
0268b41c
authored
10 years ago
by
Heinrich Fenkart
Browse files
Options
Download
Email Patches
Plain Diff
Fix IE8 reporting type object for `getBoundingClientRect`
parent
05ddea31
5 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!14090
Fix IE8 problems with unit tests
,
!25326
Adjust examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/tooltip.js
+1
-1
js/tooltip.js
with
1 addition
and
1 deletion
+1
-1
js/tooltip.js
+
1
-
1
View file @
0268b41c
...
...
@@ -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
?
{}
:
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets