Commit cbaf7a7b authored by David Bailey's avatar David Bailey
Browse files

Fix failing test

_adjustDialog should be called when the modal is first displayed to prevent it jumping position when the viewport is resized
parent ce41d3fd
Showing with 2 additions and 0 deletions
+2 -0
...@@ -135,6 +135,8 @@ const Modal = (($) => { ...@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment