Fix float formatting in the progress bar's css

refs #8191
This commit is contained in:
Johannes Meyer 2015-01-21 11:15:38 +01:00
parent b468be2813
commit fdb3988efd

View File

@ -73,7 +73,7 @@ if ($notifications->hasMessages()) {
<?php <?php
$firstPage = current($configPagesLeft); $firstPage = current($configPagesLeft);
$lastPage = end($configPagesLeft); $lastPage = end($configPagesLeft);
$lineWidth = round(100 / count($configPagesLeft), 2, PHP_ROUND_HALF_DOWN); $lineWidth = sprintf('%.2F', round(100 / count($configPagesLeft), 2, PHP_ROUND_HALF_DOWN));
?> ?>
<?php foreach ($configPagesLeft as $pos => $page): ?> <?php foreach ($configPagesLeft as $pos => $page): ?>
<?php $stateClass = $finished || $pos < $currentPos ? ' complete' : ( <?php $stateClass = $finished || $pos < $currentPos ? ' complete' : (
@ -100,7 +100,7 @@ if ($notifications->hasMessages()) {
<?php <?php
$firstPage = current($configPagesRight); $firstPage = current($configPagesRight);
$lastPage = end($configPagesRight); $lastPage = end($configPagesRight);
$lineWidth = round(100 / count($configPagesRight), 2, PHP_ROUND_HALF_DOWN); $lineWidth = sprintf('%.2F', round(100 / count($configPagesRight), 2, PHP_ROUND_HALF_DOWN));
?> ?>
<?php foreach ($configPagesRight as $pos => $page): ?> <?php foreach ($configPagesRight as $pos => $page): ?>
<?php $stateClass = $finished || $pos < $currentPos ? ' complete' : ( <?php $stateClass = $finished || $pos < $currentPos ? ' complete' : (