Restore missing photo message width
This commit is contained in:
parent
e89418482d
commit
cce1c7665b
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ QSize Photo::countCurrentSize(int newWidth) {
|
||||||
if (_pixw < 1) _pixw = 1;
|
if (_pixw < 1) _pixw = 1;
|
||||||
if (_pixh < 1) _pixh = 1;
|
if (_pixh < 1) _pixh = 1;
|
||||||
|
|
||||||
|
auto minWidth = qMax((_parent->hasBubble() ? st::historyPhotoBubbleMinWidth : st::minPhotoSize), _parent->infoWidth() + 2 * (st::msgDateImgDelta + st::msgDateImgPadding.x()));
|
||||||
newWidth = qMax(_pixw, minWidth);
|
newWidth = qMax(_pixw, minWidth);
|
||||||
auto newHeight = qMax(_pixh, st::minPhotoSize);
|
auto newHeight = qMax(_pixh, st::minPhotoSize);
|
||||||
if (_parent->hasBubble() && !_caption.isEmpty()) {
|
if (_parent->hasBubble() && !_caption.isEmpty()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue