HI
The new tag cloud in v1.8 has a number rounding bug
#foreach($popularityMax in $sorttool.sort($popularityMap.keySet()))
#if($tagCount.get($tag) > $popularityMax)
#elseif(!$classSet)
#set($liClass = $popularityMap.get($popularityMax))
#set($classSet = true)
#end
In case when $tagCount.get($tag) is equal to $popularityMax
(lets say both should be 42, $popularityMax is actually 41.9999999).
This means that a tag with 42 occurrences has o stile sheet class set
and appears very small when in fact it should be the biggest one.
I've tried doing $mathtool.toInteger($popularityMax) and
$mathtool.roundToInt($popularityMax) but both of these give
value 41.
Ajdin Brandic
--------------------------------------------------------
NOTICE
This message and any files transmitted with it is intended for the addressee only and may
contain information that is confidential or privileged. Unauthorised use is strictly
prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise
use this message, except for the purpose of delivery to the addressee.
Any views or opinions expressed within this e-mail are those of the author and do not
necessarily represent those of Coventry University.
Show replies by date