From 651cfe5b7ed2ff6aa1375e20d1cc2d0596b49529 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 18 Dec 2021 14:10:30 +0000 Subject: [PATCH] Fix about box text labels layout. --- Telegram/SourceFiles/boxes/about_box.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/boxes/about_box.cpp b/Telegram/SourceFiles/boxes/about_box.cpp index db7f745d9..7e97faa85 100644 --- a/Telegram/SourceFiles/boxes/about_box.cpp +++ b/Telegram/SourceFiles/boxes/about_box.cpp @@ -80,9 +80,15 @@ void AboutBox::prepare() { void AboutBox::resizeEvent(QResizeEvent *e) { BoxContent::resizeEvent(e); + const auto available = width() + - st::boxPadding.left() + - st::boxPadding.right(); _version->moveToLeft(st::boxPadding.left(), st::aboutVersionTop); + _text1->resizeToWidth(available); _text1->moveToLeft(st::boxPadding.left(), st::aboutTextTop); + _text2->resizeToWidth(available); _text2->moveToLeft(st::boxPadding.left(), _text1->y() + _text1->height() + st::aboutSkip); + _text3->resizeToWidth(available); _text3->moveToLeft(st::boxPadding.left(), _text2->y() + _text2->height() + st::aboutSkip); }