From 8b9582515edc98d7f5ef7c92adbd711331bb0b84 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Mon, 27 Jan 2020 04:59:01 +0300 Subject: [PATCH] Fixed adaptive bubble resizing --- Telegram/SourceFiles/history/history_widget.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 71a6e5234..b674e85f0 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -529,7 +529,14 @@ HistoryWidget::HistoryWidget( AdaptiveBubblesChanges( ) | rpl::start_with_next([=] { crl::on_main(this, [=] { - updateHistoryGeometry(); + if (_history) { + _history->forceFullResize(); + if (_migrated) { + _migrated->forceFullResize(); + } + updateHistoryGeometry(); + update(); + } }); }, lifetime());