From a65c76ea694a0a0ea07aadbf171e2b9ece0ff1d3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 25 Oct 2016 20:30:49 +0300 Subject: [PATCH] Venue layout fixed for multiline address text. We don't make the bubble wider for the address text to fit in, so we should not respect address Text::maxWidth() for item _maxw. --- Telegram/SourceFiles/history/history_media_types.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_media_types.cpp b/Telegram/SourceFiles/history/history_media_types.cpp index 774890670..490ebb78e 100644 --- a/Telegram/SourceFiles/history/history_media_types.cpp +++ b/Telegram/SourceFiles/history/history_media_types.cpp @@ -3317,7 +3317,6 @@ void HistoryLocation::initDimensions() { _minh += qMin(_title.countHeight(_maxw - st::msgPadding.left() - st::msgPadding.right()), 2 * st::webPageTitleFont->height); } if (!_description.isEmpty()) { - _maxw = qMax(_maxw, int32(st::msgPadding.left() + _description.maxWidth() + st::msgPadding.right())); _minh += qMin(_description.countHeight(_maxw - st::msgPadding.left() - st::msgPadding.right()), 3 * st::webPageDescriptionFont->height); } _minh += st::mediaPadding.top() + st::mediaPadding.bottom();