mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user