mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-21 23:57:38 +00:00
Fix grouped layout algorithm to match other apps.
This commit is contained in:
parent
57351dd42a
commit
a6c15217c0
@ -113,7 +113,7 @@ Layouter::Layouter(
|
||||
, _maxHeight(maxWidth)
|
||||
, _minWidth(minWidth)
|
||||
, _spacing(spacing)
|
||||
, _averageRatio(ranges::accumulate(_ratios, 0.) / _count)
|
||||
, _averageRatio(ranges::accumulate(_ratios, 1.) / _count)
|
||||
, _maxSizeRatio(_maxWidth / float64(_maxHeight)) {
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user