Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/src/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ class Modal {

this._adjustDialog()

$(document.body).addClass(ClassName.OPEN)
Copy link
Member

@Johann-S Johann-S Nov 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it works to move this line above this._adjustDialog() ? Because I'm not a big fan of adding that in _setScrollbar method because it's not the purpose of this method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that but didn't work. We need to reduce the number of renderings.


this._setEscapeEvent()
this._setResizeEvent()

Expand Down Expand Up @@ -466,6 +464,8 @@ class Modal {
.data('padding-right', actualPadding)
.css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)
}

$(document.body).addClass(ClassName.OPEN)
}

_resetScrollbar() {
Expand Down