diff --git a/linphone-app/ui/modules/Common/Form/Mosaic.qml b/linphone-app/ui/modules/Common/Form/Mosaic.qml index 1e4102577..32151bbc5 100644 --- a/linphone-app/ui/modules/Common/Form/Mosaic.qml +++ b/linphone-app/ui/modules/Common/Form/Mosaic.qml @@ -84,7 +84,8 @@ ColumnLayout{ for(var C = itemCount ; C >= 1 ; --C){ if( R * C >= itemCount){// This is a good layout candidate var estimatedSize = Math.min(availableW / C, availableH / R) - if(estimatedSize > bestSize){ + if(estimatedSize > bestSize // Size is better + || (estimatedSize == bestSize && Math.abs(bestR-bestC) > Math.abs(R - C) )){// Stickers are more homogenized bestSize = estimatedSize bestC = C bestR = R