]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix failing test
authorDavid Bailey <techdavid@users.noreply.github.com>
Tue, 29 Aug 2017 14:42:58 +0000 (15:42 +0100)
committerDavid Bailey <techdavid@users.noreply.github.com>
Tue, 29 Aug 2017 14:42:58 +0000 (15:42 +0100)
_adjustDialog should be called when the modal is first displayed to prevent it jumping position when the viewport is resized

js/src/modal.js

index ab73230c8f7f1c4f5c162f73bde1959d0b4704c1..5892ed0451afc60057e824206670ac7f40fbcddb 100644 (file)
@@ -135,6 +135,8 @@ const Modal = (($) => {
       this._checkScrollbar()
       this._setScrollbar()
 
+      this._adjustDialog()
+
       $(document.body).addClass(ClassName.OPEN)
 
       this._setEscapeEvent()