mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-28 09:32:56 +00:00
parent
364aaaae5b
commit
b64bbc7708
@ -2766,6 +2766,9 @@ QSize HistorySticker::countOptimalSize() {
|
||||
if (_pixh < 1) _pixh = 1;
|
||||
auto maxWidth = qMax(_pixw, st::minPhotoSize);
|
||||
auto minHeight = qMax(_pixh, st::minPhotoSize);
|
||||
accumulate_max(
|
||||
maxWidth,
|
||||
_parent->infoWidth() + 2 * st::msgDateImgPadding.x());
|
||||
if (_parent->media() == this) {
|
||||
maxWidth += additionalWidth();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user