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
01405523
Commit
01405523
authored
6 years ago
by
ysds
Committed by
Johann-S
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix body scrolling issue when modal open (#27698)
parent
3e25bf40
1 merge request
!28721
Hot test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/modal.js
+2
-2
js/src/modal.js
with
2 additions
and
2 deletions
+2
-2
js/src/modal.js
+
2
-
2
View file @
01405523
...
@@ -127,8 +127,6 @@ class Modal {
...
@@ -127,8 +127,6 @@ class Modal {
this
.
_adjustDialog
()
this
.
_adjustDialog
()
$
(
document
.
body
).
addClass
(
ClassName
.
OPEN
)
this
.
_setEscapeEvent
()
this
.
_setEscapeEvent
()
this
.
_setResizeEvent
()
this
.
_setResizeEvent
()
...
@@ -466,6 +464,8 @@ class Modal {
...
@@ -466,6 +464,8 @@ class Modal {
.
data
(
'
padding-right
'
,
actualPadding
)
.
data
(
'
padding-right
'
,
actualPadding
)
.
css
(
'
padding-right
'
,
`
${
parseFloat
(
calculatedPadding
)
+
this
.
_scrollbarWidth
}
px`
)
.
css
(
'
padding-right
'
,
`
${
parseFloat
(
calculatedPadding
)
+
this
.
_scrollbarWidth
}
px`
)
}
}
$
(
document
.
body
).
addClass
(
ClassName
.
OPEN
)
}
}
_resetScrollbar
()
{
_resetScrollbar
()
{
...
...
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