]> _ Git - cubeextranet.git/commitdiff
WIP #2087 @0.5
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 29 Aug 2018 15:28:16 +0000 (15:28 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 29 Aug 2018 15:28:16 +0000 (15:28 +0000)
inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php

index 094edc76379098a69c852a54547bcf711e9e59ca..df4ceb325c78df0f0decc6fc8235c630e086cc30 100644 (file)
@@ -1470,11 +1470,13 @@ class zoomLink extends normalLink
 
                // Data attributes
                $attributes = [
-                       'maxzoom' => $this->to,
+                       'maxzoom' => empty($this->to) ? 3 : $this->to,
             'group' => $this->group,
             'group-count' => empty($this->group) ? 0 : count(explode(',', $this->group)),
                        'width' => round($this->width),
-                       'height' => round($this->height)
+                       'height' => round($this->height),
+            'x' => round($this->left),
+            'y' => round($this->top)
                ];
 
                // Set data attributes