1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Fix failing test

_adjustDialog should be called when the modal is first displayed to prevent it jumping position when the viewport is resized
This commit is contained in:
David Bailey 2017-08-29 15:42:58 +01:00
parent ce41d3fd15
commit cbaf7a7b79

View file

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