diff --git a/Telegram/SourceFiles/boxes/self_destruction_box.cpp b/Telegram/SourceFiles/boxes/self_destruction_box.cpp index f65cd54b17..e9946c9f5a 100644 --- a/Telegram/SourceFiles/boxes/self_destruction_box.cpp +++ b/Telegram/SourceFiles/boxes/self_destruction_box.cpp @@ -14,6 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "boxes/passcode_box.h" #include "lang/lang_keys.h" #include "main/main_session.h" +#include "ui/rect.h" #include "ui/widgets/checkbox.h" #include "ui/widgets/labels.h" #include "ui/text/text_utilities.h" @@ -148,6 +149,8 @@ void SelfDestructionBox::showContent() { : tr::lng_self_destruct_sessions_description(tr::now)), st::boxLabel); _description->moveToLeft(st::boxPadding.left(), y); + _description->resizeToWidth(st::boxWidth + - rect::m::sum::h(st::boxPadding)); y += _description->height() + st::boxMediumSkip; for (const auto value : _ttlValues) { @@ -200,6 +203,8 @@ void SelfDestructionBox::prepare() { ? tr::lng_self_destruct_description(tr::now) : tr::lng_self_destruct_sessions_description(tr::now)), st::boxLabel); + fake->resizeToWidth(st::boxWidth + - rect::m::sum::h(st::boxPadding)); const auto boxHeight = st::boxOptionListPadding.top() + fake->height() + st::boxMediumSkip + (_ttlValues.size()