From 291059ea964dc533599d8aca689dd3c637e98d60 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 24 Jan 2024 02:31:13 +0200 Subject: [PATCH] replace round to ceil --- src/Calendar/Month.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Calendar/Month.php b/src/Calendar/Month.php index 2ae837e..287583a 100644 --- a/src/Calendar/Month.php +++ b/src/Calendar/Month.php @@ -75,7 +75,7 @@ class Month $this->_node[$i][$l][$j]['height'] = $hours[$i][$l] ? ceil($data['value'] / $hours[$i][$l] * 100) : 0; break; default: - $this->_node[$i][$l][$j]['height'] = $month ? round($data['value'] * ($month / 100)) : 0; + $this->_node[$i][$l][$j]['height'] = $month ? ceil($data['value'] * ($month / 100)) : 0; } $this->_node[$i][$l][$j]['width'] = $width;