modal: nested modal scroll fix (disable parent modal's scroll when opened)
This commit is contained in:
parent
58e9a0f773
commit
a88d14a8d3
1 changed files with 2 additions and 2 deletions
|
|
@ -77,11 +77,11 @@ module.exports = class Modal extends Panel {
|
|||
|
||||
fixScrolling(){
|
||||
if (this.value) {
|
||||
var c = this.container.parents('.tab').first()
|
||||
var c = this.container.parents('.tab, .modal-container > .panel').first()
|
||||
this.parentScroll = [c.scrollLeft(), c.scrollTop()]
|
||||
c.scrollTop(0).scrollLeft(0).css('overflow','hidden')
|
||||
} else {
|
||||
this.container.parents('.tab').first().css('overflow','').scrollLeft(this.parentScroll[0]).scrollTop(this.parentScroll[1])
|
||||
this.container.parents('.tab, .modal-container > .panel').first().css('overflow','').scrollLeft(this.parentScroll[0]).scrollTop(this.parentScroll[1])
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue