aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorDavid Bailey <[email protected]>2017-08-29 15:42:58 +0100
committerDavid Bailey <[email protected]>2017-08-29 15:42:58 +0100
commitcbaf7a7b79c78ec7d877f348d12102acde6adfa0 (patch)
tree5f44a3a16815babc83546bb22b2b7186d4d459d1 /js/src
parentce41d3fd159ce376b55413cef6e88fd658f4fd30 (diff)
downloadbootstrap-cbaf7a7b79c78ec7d877f348d12102acde6adfa0.tar.xz
bootstrap-cbaf7a7b79c78ec7d877f348d12102acde6adfa0.zip
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')
-rw-r--r--js/src/modal.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index ab73230c8..5892ed045 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()