Skip to content

Commit

Permalink
replace round to ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost committed Jan 24, 2024
1 parent 72ee9ec commit 291059e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Calendar/Month.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getNodes(string $height = 'month') : object
$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;
Expand Down

0 comments on commit 291059e

Please sign in to comment.