]> _ Git - fluidbook_tools.git/commitdiff
wip #6953 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 11 Jun 2024 08:41:35 +0000 (10:41 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 11 Jun 2024 08:41:35 +0000 (10:41 +0200)
src/Links/Link.php

index 037877ce9304846b77c38af4a077f5ad1a3cb59f..314d4cf7a13c898ccf712161ed321b5e849edaf6 100644 (file)
@@ -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;