modal: stacking fix clean js
This commit is contained in:
parent
9b7f4de723
commit
ba76c2d120
1 changed files with 7 additions and 3 deletions
|
|
@ -50,7 +50,6 @@ module.exports = class Modal extends Panel {
|
|||
this.setValue(!this.value)
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
setValue(v) {
|
||||
|
|
@ -60,13 +59,18 @@ module.exports = class Modal extends Panel {
|
|||
this.widget.toggleClass('on', this.value)
|
||||
this.light.toggleClass('on', this.value)
|
||||
|
||||
if (this.value) $(window).resize()
|
||||
|
||||
this.fixStacking()
|
||||
|
||||
}
|
||||
|
||||
fixStacking() {
|
||||
if (this.value) {
|
||||
$(window).resize()
|
||||
this.container.parents('.widget').css('z-index','initial')
|
||||
} else {
|
||||
this.container.parents('.widget').css('z-index','')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue