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.
This commit is contained in:
John Preston 2016-10-25 20:30:49 +03:00
parent 802349d042
commit a65c76ea69
1 changed files with 0 additions and 1 deletions

View File

@ -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();