limit percentage of font-size for tag cloud entries to intenger values
authorAndreas Unterkircher <unki@netshadow.at>
Mon, 18 Jun 2007 18:16:24 +0000 (18:16 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Mon, 18 Jun 2007 18:16:24 +0000 (18:16 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@105 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php

index b0440245b4014926d5646a6c7ddc04320b4c6852..e15f8e5e9aa66af354e943a80b1f9488ec7558f5 100644 (file)
@@ -194,7 +194,7 @@ class PHPFSPOT {
           // and add the $min_size set above
          $size = $min_size + (($value - $min_qty) * $step);
           // uncomment if you want sizes in whole %:
           // and add the $min_size set above
          $size = $min_size + (($value - $min_qty) * $step);
           // uncomment if you want sizes in whole %:
-          // $size = ceil($size);
+         $size = ceil($size);
 
          print "<a href=\"javascript:Tags('add', ". $key .");\" class=\"tag\" style=\"font-size: ". $size ."%;\">". $this->tags[$key] ."</a>&nbsp;";
 
 
          print "<a href=\"javascript:Tags('add', ". $key .");\" class=\"tag\" style=\"font-size: ". $size ."%;\">". $this->tags[$key] ."</a>&nbsp;";