From 46b06dc802ab02d0a2d382f28ac8bb10bfcc67ae Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 8 Jul 2021 13:34:02 +0000 Subject: [PATCH] wait #4582 @1.5 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index dfa562ce3..acac53a8a 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -550,7 +550,7 @@ class wsHTML5Link public function getCSSZIndex() { - $zindex = $this->getAddZIndex() + (($this->getDepth() + 1) * 1000) - min(999, round(($this->width * $this->height) / 300)); + $zindex = $this->getAddZIndex() + (($this->getDepth() + 1) * 1000) - min(999, round(999 * (($this->width * $this->height) / ($this->compiler->width * 2 * $this->compiler->height)))); return 'z-index:' . $zindex . ';'; } @@ -945,7 +945,6 @@ class htmlMultimediaPopupImage extends normalLink class contentLink extends wsHTML5Link { public $defaultZIndex = 30; - public $animZindex = 0; public function getHTMLContainerClass() { @@ -962,7 +961,7 @@ class contentLink extends wsHTML5Link unset($animation['blendmode']); } if (isset($animation['zindex'])) { - $this->animZindex = $animation['zindex']; + $this->zindex = $animation['zindex']; } } $res .= ' data-animations="' . htmlspecialchars(json_encode($animations), ENT_QUOTES) . '" '; @@ -997,11 +996,6 @@ class contentLink extends wsHTML5Link } return false; } - - public function getAddZIndex() - { - return parent::getAddZIndex() + $this->animZindex; - } } class eventOverlayLink extends wsHTML5Link -- 2.39.5