Skip to content

Commit 9b41e13

Browse files
adam187TheSharpieOne
authored andcommitted
1 parent 0bac1f4 commit 9b41e13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ export function getOriginalBodyPadding() {
138138

139139
export function conditionallyUpdateScrollbar() {
140140
const scrollbarWidth = getScrollbarWidth();
141-
// https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.4/js/src/modal.js#L420
142-
const fixedContent = document.querySelectorAll('.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed')[0];
141+
// https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.6/js/src/modal.js#L433
142+
const fixedContent = document.querySelectorAll('.fixed-top, .fixed-bottom, .is-fixed, .sticky-top')[0];
143143
const bodyPadding = fixedContent ? parseInt(
144144
fixedContent.style.paddingRight || 0,
145145
10

0 commit comments

Comments
 (0)