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
afdd62d1
Commit
afdd62d1
authored
8 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
Modal: Remove IE8-specific window.innerWidth workaround
[skip validator]
parent
06b127a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/modal.js
+1
-7
js/src/modal.js
with
1 addition
and
7 deletions
+1
-7
js/src/modal.js
+
1
-
7
View file @
afdd62d1
...
...
@@ -408,13 +408,7 @@ const Modal = (($) => {
}
_checkScrollbar
()
{
let
fullWindowWidth
=
window
.
innerWidth
if
(
!
fullWindowWidth
)
{
// workaround for missing window.innerWidth in IE8
let
documentElementRect
=
document
.
documentElement
.
getBoundingClientRect
()
fullWindowWidth
=
documentElementRect
.
right
-
Math
.
abs
(
documentElementRect
.
left
)
}
this
.
_isBodyOverflowing
=
document
.
body
.
clientWidth
<
fullWindowWidth
this
.
_isBodyOverflowing
=
document
.
body
.
clientWidth
<
window
.
innerWidth
this
.
_scrollbarWidth
=
this
.
_getScrollbarWidth
()
}
...
...
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