Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bailey <techdavid@users.noreply.github.com>2017-08-29 17:42:58 +0300
committerDavid Bailey <techdavid@users.noreply.github.com>2017-08-29 17:42:58 +0300
commitcbaf7a7b79c78ec7d877f348d12102acde6adfa0 (patch)
tree5f44a3a16815babc83546bb22b2b7186d4d459d1 /js/src/modal.js
parentce41d3fd159ce376b55413cef6e88fd658f4fd30 (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.js2
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()