Bug #23515 » 15662_v2.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'];
|
||
while (isset($sizes[$rowWidth])) {
|
||
$rowWidth++;
|
||
}
|
||
$sizes[$rowWidth] = $sizeTag;
|
||
}
|
||
// reverse sorting: widest group to top
|
||
krsort($sizes);
|
- « Previous
- 1
- 2
- Next »