From 3ac222db62d82f6065aee67502e0b793c6bc1cfc Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 7 Nov 2023 09:08:08 +0400 Subject: [PATCH] Fix initial scroll to search result in bots. --- Telegram/SourceFiles/history/history_inner_widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index bc8b0b09b..101d8a0b4 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -3088,6 +3088,8 @@ void HistoryInner::recountHistoryGeometry() { accumulate_max(oldHistoryPaddingTop, _botAbout->height); } + updateBotInfo(false); + _history->resizeToWidth(_contentWidth); if (_migrated) { _migrated->resizeToWidth(_contentWidth); @@ -3111,7 +3113,6 @@ void HistoryInner::recountHistoryGeometry() { } } - updateBotInfo(false); if (const auto view = _botAbout ? _botAbout->view() : nullptr) { _botAbout->height = view->resizeGetHeight(_contentWidth); _botAbout->top = qMin(