From 0067245739c8dd795d65840e504b26a8f998e85f Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 31 Oct 2024 20:32:41 +0400 Subject: [PATCH] Send more viewport_changed, just in case. --- Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index 3aca29e870..daab6358f3 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -712,6 +712,7 @@ bool Panel::createWebview(const Webview::ThemeParams ¶ms) { view->setGeometry(geometry.marginsRemoved({ 0, 0, 0, footer })); crl::on_main(view, [=] { sendViewport(); + InvokeQueued(view, [=] { sendViewport(); }); }); } }, _webview->lifetime);