diff --git a/Classes/Sizes/Rootline.php b/Classes/Sizes/Rootline.php index 75dee48..4fb3c3b 100644 --- a/Classes/Sizes/Rootline.php +++ b/Classes/Sizes/Rootline.php @@ -173,6 +173,8 @@ private function calculateFinalSizes(array $sizes, array $multiplier): void $size *= $multiplierItem[$sizeName]; } + + $size = ceil($size); } $this->finalSizes = $sizes; diff --git a/Tests/Functional/ContainerTest.php b/Tests/Functional/ContainerTest.php index 93e0f91..42e133b 100644 --- a/Tests/Functional/ContainerTest.php +++ b/Tests/Functional/ContainerTest.php @@ -100,9 +100,9 @@ public static function imageScalingValuesDataProvider(): iterable [ '0' => 'mobile 734 (max-width: 480px)', '1' => 'mobile 704 (max-width: 767px)', - '2' => 'tablet 615.384 (max-width: 991px)', - '3' => 'default 748.584 (max-width: 1479px)', - '4' => 'large 374.292 (min-width: 1480px)', + '2' => 'tablet 616 (max-width: 991px)', + '3' => 'default 749 (max-width: 1479px)', + '4' => 'large 375 (min-width: 1480px)', ], ]; yield '2 Column in 1 Column' => [ @@ -122,7 +122,7 @@ public static function imageScalingValuesDataProvider(): iterable '1' => 'mobile 704 (max-width: 767px)', '2' => 'tablet 231 (max-width: 991px)', '3' => 'default 281 (max-width: 1479px)', - '4' => 'large 140.5 (min-width: 1480px)', + '4' => 'large 141 (min-width: 1480px)', ], ]; yield '3 Column' => [ @@ -130,9 +130,9 @@ public static function imageScalingValuesDataProvider(): iterable [ '0' => 'mobile 734 (max-width: 480px)', '1' => 'mobile 704 (max-width: 767px)', - '2' => 'tablet 307.692 (max-width: 991px)', - '3' => 'default 374.292 (max-width: 1479px)', - '4' => 'large 187.146 (min-width: 1480px)', + '2' => 'tablet 308 (max-width: 991px)', + '3' => 'default 375 (max-width: 1479px)', + '4' => 'large 188 (min-width: 1480px)', ], ]; yield '1 Column Full Width' => [