mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-12 08:34:08 +02: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:
@@ -135,6 +135,8 @@ const Modal = (($) => {
|
|||||||
this._checkScrollbar()
|
this._checkScrollbar()
|
||||||
this._setScrollbar()
|
this._setScrollbar()
|
||||||
|
|
||||||
|
this._adjustDialog()
|
||||||
|
|
||||||
$(document.body).addClass(ClassName.OPEN)
|
$(document.body).addClass(ClassName.OPEN)
|
||||||
|
|
||||||
this._setEscapeEvent()
|
this._setEscapeEvent()
|
||||||
|
Reference in New Issue
Block a user