modal: fix stacking when modal is inside an absolutely positionned widget

This commit is contained in:
jean-emmanuel 2017-02-20 17:02:10 +01:00
parent 50446e0af9
commit c521162bb9

View file

@ -60,7 +60,12 @@ module.exports = class Modal extends Panel {
this.widget.toggleClass('on', this.value)
this.light.toggleClass('on', this.value)
if (this.value) $(window).resize()
if (this.value) {
$(window).resize()
this.container.parents('.widget').css('z-index','initial')
} else {
this.container.parents('.widget').css('z-index','')
}
}