mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Fix initial scroll to search result in bots.
This commit is contained in:
@@ -3088,6 +3088,8 @@ void HistoryInner::recountHistoryGeometry() {
|
|||||||
accumulate_max(oldHistoryPaddingTop, _botAbout->height);
|
accumulate_max(oldHistoryPaddingTop, _botAbout->height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateBotInfo(false);
|
||||||
|
|
||||||
_history->resizeToWidth(_contentWidth);
|
_history->resizeToWidth(_contentWidth);
|
||||||
if (_migrated) {
|
if (_migrated) {
|
||||||
_migrated->resizeToWidth(_contentWidth);
|
_migrated->resizeToWidth(_contentWidth);
|
||||||
@@ -3111,7 +3113,6 @@ void HistoryInner::recountHistoryGeometry() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
updateBotInfo(false);
|
|
||||||
if (const auto view = _botAbout ? _botAbout->view() : nullptr) {
|
if (const auto view = _botAbout ? _botAbout->view() : nullptr) {
|
||||||
_botAbout->height = view->resizeGetHeight(_contentWidth);
|
_botAbout->height = view->resizeGetHeight(_contentWidth);
|
||||||
_botAbout->top = qMin(
|
_botAbout->top = qMin(
|
||||||
|
Reference in New Issue
Block a user