From: Vincent Vanwaelscappel Date: Tue, 11 Jun 2024 08:41:35 +0000 (+0200) Subject: wip #6953 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5a954e684e0b19e89463b310c2849bebe7b08560;p=fluidbook_tools.git wip #6953 @0.5 --- diff --git a/src/Links/Link.php b/src/Links/Link.php index 037877c..314d4cf 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -622,7 +622,7 @@ class Link public function getHTMLContainerClass() { $res = trim('link ' . $this->class); - if ((int)$this->page % 2 == 1) { + if ($this->isOnNormalPage() && (int)$this->page % 2 == 1) { $res .= ' odd'; } if ($this->rightClone) { @@ -722,7 +722,7 @@ class Link public function moveOnEvenPage() { - if (is_numeric($this->page) && $this->page % 2 === 0 && $this->left < $this->compiler->getWidthForLinks()) { + if ($this->isOnNormalPage() && is_numeric($this->page) && $this->page % 2 === 0 && $this->left < $this->compiler->getWidthForLinks()) { return false; } return $this->attachLeft;