mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Use always the same sizes for group layout.
For the floating point precision to matter less in the album layout decisions use always full image sizes for layout when sending an album and when displaying it. Fixes #5049.
This commit is contained in:
@@ -993,7 +993,7 @@ auto SendFilesBox::AlbumPreview::generateOrderedLayout() const
|
||||
auto sizes = ranges::view::all(
|
||||
_order
|
||||
) | ranges::view::transform([&](int index) {
|
||||
return _list.files[index].preview.size() / cIntRetinaFactor();
|
||||
return _list.files[index].shownDimensions;
|
||||
}) | ranges::to_vector;
|
||||
|
||||
auto layout = Ui::LayoutMediaGroup(
|
||||
|
Reference in New Issue
Block a user