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
7f562338
Commit
7f562338
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Plain Diff
Merge branch 'stefansundin/master'
parents
5b9fcea9
f2518161
4 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/modal.js
+2
-2
js/modal.js
with
2 additions
and
2 deletions
+2
-2
js/modal.js
+
2
-
2
View file @
7f562338
...
...
@@ -207,8 +207,7 @@
}
Modal
.
prototype
.
checkScrollbar
=
function
()
{
if
(
document
.
body
.
clientWidth
>=
window
.
innerWidth
)
return
this
.
scrollbarWidth
=
this
.
scrollbarWidth
||
this
.
measureScrollbar
()
this
.
scrollbarWidth
=
this
.
measureScrollbar
()
}
Modal
.
prototype
.
setScrollbar
=
function
()
{
...
...
@@ -221,6 +220,7 @@
}
Modal
.
prototype
.
measureScrollbar
=
function
()
{
// thx walsh
if
(
document
.
body
.
clientWidth
>=
window
.
innerWidth
)
return
0
var
scrollDiv
=
document
.
createElement
(
'
div
'
)
scrollDiv
.
className
=
'
modal-scrollbar-measure
'
this
.
$body
.
append
(
scrollDiv
)
...
...
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