This reverts commit 542331c93f0b9f6d639f719853c9ac5e8b28303c.
This commit is contained in:
Ad Schellevis 2018-08-08 18:48:55 +02:00
parent 31e3f748ad
commit 34ed67aeb0
2 changed files with 17 additions and 10 deletions

View File

@ -703,16 +703,23 @@
var el = this.container;
var zindex = 0;
do {
var calc = parseInt(el.css('z-index'));
if(!isNaN(calc) && calc > zindex){
zindex = calc;
if(!isNaN(parseInt(el.css('z-index'))) && parseInt(el.css('z-index')) > 0){
zindex = parseInt(el.css('z-index'));
}
if(zindex < 1){
while(el.length) {
el = el.parent();
if(el.length > 0){
if(!isNaN(parseInt(el.css('z-index'))) && parseInt(el.css('z-index')) > 0){
return parseInt(el.css('z-index'));
}
if(el.is('html')){
break;
}
}
}
if(el.is('html')){
break;
}
el = el.parent();
} while(el.length > 0);
}
return zindex;

File diff suppressed because one or more lines are too long