2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

resizing inline results to small heights started, fixed sticker with reply display

This commit is contained in:
John Preston
2016-01-02 07:43:41 +08:00
parent 6236ef717e
commit e43ea5101e
3 changed files with 53 additions and 20 deletions

View File

@@ -6554,12 +6554,12 @@ int32 HistoryMessage::resize(int32 width) {
if (width < st::msgMinWidth) return _height;
width -= st::msgMargin.left() + st::msgMargin.right();
if (width < st::msgPadding.left() + st::msgPadding.right() + 1) {
width = st::msgPadding.left() + st::msgPadding.right() + 1;
} else if (width > st::msgMaxWidth) {
width = st::msgMaxWidth;
}
if (drawBubble()) {
if (width < st::msgPadding.left() + st::msgPadding.right() + 1) {
width = st::msgPadding.left() + st::msgPadding.right() + 1;
} else if (width > st::msgMaxWidth) {
width = st::msgMaxWidth;
}
bool media = (_media && _media->isDisplayed());
if (width >= _maxw) {
_height = _minh;