mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
parent
364aaaae5b
commit
b64bbc7708
1 changed files with 3 additions and 0 deletions
|
@ -2766,6 +2766,9 @@ QSize HistorySticker::countOptimalSize() {
|
||||||
if (_pixh < 1) _pixh = 1;
|
if (_pixh < 1) _pixh = 1;
|
||||||
auto maxWidth = qMax(_pixw, st::minPhotoSize);
|
auto maxWidth = qMax(_pixw, st::minPhotoSize);
|
||||||
auto minHeight = qMax(_pixh, st::minPhotoSize);
|
auto minHeight = qMax(_pixh, st::minPhotoSize);
|
||||||
|
accumulate_max(
|
||||||
|
maxWidth,
|
||||||
|
_parent->infoWidth() + 2 * st::msgDateImgPadding.x());
|
||||||
if (_parent->media() == this) {
|
if (_parent->media() == this) {
|
||||||
maxWidth += additionalWidth();
|
maxWidth += additionalWidth();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue