fixed bad media fwd/reply layout
This commit is contained in:
parent
a9319bf6a3
commit
73cade9fd9
1 changed files with 2 additions and 2 deletions
|
@ -5877,7 +5877,7 @@ void HistoryForwarded::drawMessageText(QPainter &p, const QRect &trect, uint32 s
|
||||||
int32 HistoryForwarded::resize(int32 width) {
|
int32 HistoryForwarded::resize(int32 width) {
|
||||||
HistoryMessage::resize(width);
|
HistoryMessage::resize(width);
|
||||||
|
|
||||||
_height += st::msgServiceNameFont->height;
|
if (!justMedia()) _height += st::msgServiceNameFont->height;
|
||||||
return _height;
|
return _height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6179,7 +6179,7 @@ void HistoryReply::drawMessageText(QPainter &p, const QRect &trect, uint32 selec
|
||||||
int32 HistoryReply::resize(int32 width) {
|
int32 HistoryReply::resize(int32 width) {
|
||||||
HistoryMessage::resize(width);
|
HistoryMessage::resize(width);
|
||||||
|
|
||||||
_height += st::msgReplyPadding.top() + st::msgReplyBarSize.height() + st::msgReplyPadding.bottom();
|
if (!justMedia()) _height += st::msgReplyPadding.top() + st::msgReplyBarSize.height() + st::msgReplyPadding.bottom();
|
||||||
return _height;
|
return _height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue