From 240f084695ee63e6fd965c8a6b19f51c42e531bf Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Wed, 29 Aug 2018 15:28:16 +0000 Subject: [PATCH] WIP #2087 @0.5 --- inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php b/inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php index 094edc763..df4ceb325 100644 --- a/inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php +++ b/inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php @@ -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 -- 2.39.5