From 68e35b232d1321cdcfcf07d85884cafacead02d6 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 25 Apr 2021 10:33:33 +0400 Subject: [PATCH] Fix updating langs in payments form buttons. --- Telegram/SourceFiles/payments/ui/payments_form_summary.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Telegram/SourceFiles/payments/ui/payments_form_summary.cpp b/Telegram/SourceFiles/payments/ui/payments_form_summary.cpp index 489ebef3b..3dfba7782 100644 --- a/Telegram/SourceFiles/payments/ui/payments_form_summary.cpp +++ b/Telegram/SourceFiles/payments/ui/payments_form_summary.cpp @@ -194,6 +194,13 @@ void FormSummary::setupControls() { _scroll->heightValue(), _layout->heightValue(), _1 + _2 < _3)); + + rpl::merge( + _submit->widthValue(), + _cancel->widthValue() + ) | rpl::skip(2) | rpl::start_with_next([=] { + updateControlsGeometry(); + }, lifetime()); } void FormSummary::setupCover(not_null layout) {