Possible fix for unnecessary video messages resizing
This commit is contained in:
parent
1d4bbd6f81
commit
e2c8eaf191
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ QSize UnwrappedMedia::countOptimalSize() {
|
||||||
_content->refreshLink();
|
_content->refreshLink();
|
||||||
_contentSize = NonEmptySize(DownscaledSize(
|
_contentSize = NonEmptySize(DownscaledSize(
|
||||||
_content->size(),
|
_content->size(),
|
||||||
{ st::maxStickerSize, StickerHeight() }));
|
{ st::maxStickerSize, st::maxStickerSize }));
|
||||||
auto maxWidth = _contentSize.width();
|
auto maxWidth = _contentSize.width();
|
||||||
const auto minimal = st::largeEmojiSize + 2 * st::largeEmojiOutline;
|
const auto minimal = st::largeEmojiSize + 2 * st::largeEmojiOutline;
|
||||||
auto minHeight = std::max(_contentSize.height(), minimal);
|
auto minHeight = std::max(_contentSize.height(), minimal);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue