From 21228783da95d9ad857b425d806795b0d939f4fd Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 26 Feb 2021 21:19:08 +0400 Subject: [PATCH] Fix webview on macOS. --- Telegram/SourceFiles/facades.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/facades.cpp b/Telegram/SourceFiles/facades.cpp index 33a316b543..c51e358857 100644 --- a/Telegram/SourceFiles/facades.cpp +++ b/Telegram/SourceFiles/facades.cpp @@ -51,7 +51,12 @@ void GetPaymentForm(not_null msg) { MTP_int(msgId) )).done([=](const MTPpayments_PaymentForm &result) { const auto window = new Ui::Window(); - window->setGeometry({ 100, 100, 1280, 960 }); + window->setGeometry({ + style::ConvertScale(100), + style::ConvertScale(100), + style::ConvertScale(640), + style::ConvertScale(480) + }); window->show(); window->events() | rpl::start_with_next([=](not_null e) {