diff options
author | David Bailey <techdavid@users.noreply.github.com> | 2017-08-29 17:42:58 +0300 |
---|---|---|
committer | David Bailey <techdavid@users.noreply.github.com> | 2017-08-29 17:42:58 +0300 |
commit | cbaf7a7b79c78ec7d877f348d12102acde6adfa0 (patch) | |
tree | 5f44a3a16815babc83546bb22b2b7186d4d459d1 /js/src/modal.js | |
parent | ce41d3fd159ce376b55413cef6e88fd658f4fd30 (diff) |
Fix failing test
_adjustDialog should be called when the modal is first displayed to prevent it jumping position when the viewport is resized
Diffstat (limited to 'js/src/modal.js')
-rw-r--r-- | js/src/modal.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/modal.js b/js/src/modal.js index ab73230c8f..5892ed0451 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -135,6 +135,8 @@ const Modal = (($) => { this._checkScrollbar() this._setScrollbar() + this._adjustDialog() + $(document.body).addClass(ClassName.OPEN) this._setEscapeEvent() |