Modal: only add scrollbar spacing when there is a scrollbar
This commit is contained in:
parent
664d433d3a
commit
1df24fe354
1 changed files with 2 additions and 2 deletions
|
@ -257,8 +257,8 @@
|
|||
left: this.$body.offset().left,
|
||||
top: this.$body.offset().top,
|
||||
width: this.$body.width(),
|
||||
paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
|
||||
paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
|
||||
paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing && this.scrollbarWidth > 0 ? this.scrollbarWidth : '',
|
||||
paddingRight: this.bodyIsOverflowing && !modalIsOverflowing && this.scrollbarWidth > 0 ? this.scrollbarWidth : ''
|
||||
}
|
||||
|
||||
if(App.i18n.dir() == 'rtl'){
|
||||
|
|
Loading…
Reference in a new issue