Project

General

Profile

Bug #23515 » 15662.diff

Administrator Admin, 2010-09-08 14:27

View differences:

t3lib/spritemanager/class.t3lib_spritemanager_spritegenerator.php (Arbeitskopie)
$sizes = array();
foreach ($this->iconSizes as $sizeTag => $count) {
$size = $this->explodeSizeTag($sizeTag);
$sizes[ceil(sqrt($count)) * $size['width']] = $sizeTag;
$rowWidth = ceil(sqrt($count)) * $size['width'];
if(isset($sizes[$rowWidth])) {
$rowWidth++;
}
$sizes[$rowWidth] = $sizeTag;
}
// reverse sorting: widest group to top
krsort($sizes);
(1-1/2)