diff options
Diffstat (limited to 'js/src/util/scrollbar.js')
| -rw-r--r-- | js/src/util/scrollbar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/util/scrollbar.js b/js/src/util/scrollbar.js index 73c28254e..7a44c463e 100644 --- a/js/src/util/scrollbar.js +++ b/js/src/util/scrollbar.js @@ -7,14 +7,14 @@ import SelectorEngine from '../dom/selector-engine' import Manipulator from '../dom/manipulator' -import { isElement } from './index' +import { isElement, getDocument } from './index' const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top' const SELECTOR_STICKY_CONTENT = '.sticky-top' class ScrollBarHelper { constructor() { - this._element = document.body + this._element = getDocument().body } getWidth() { |
