diff --git a/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp b/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp index c8ed10f54..59ca89201 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp @@ -235,11 +235,6 @@ QSize WebPage::countOptimalSize() { } if (_title.isEmpty() && !title.isEmpty()) { auto titleWithEntities = Ui::Text::Link(title, _data->url); - if (textFloatsAroundInfo && _description.isEmpty()) { - _title.updateSkipBlock( - _parent->skipBlockWidth(), - _parent->skipBlockHeight()); - } if (!_siteNameLines && !_data->url.isEmpty()) { _title.setMarkedText( st::webPageTitleStyle, @@ -252,6 +247,11 @@ QSize WebPage::countOptimalSize() { title, Ui::WebpageTextTitleOptions()); } + if (textFloatsAroundInfo && _description.isEmpty()) { + _title.updateSkipBlock( + _parent->skipBlockWidth(), + _parent->skipBlockHeight()); + } } // init dimensions