Bug #23515 » 15662.diff
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);
|