mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix about box text labels layout.
This commit is contained in:
parent
a34b2a5472
commit
651cfe5b7e
1 changed files with 6 additions and 0 deletions
|
@ -80,9 +80,15 @@ void AboutBox::prepare() {
|
||||||
void AboutBox::resizeEvent(QResizeEvent *e) {
|
void AboutBox::resizeEvent(QResizeEvent *e) {
|
||||||
BoxContent::resizeEvent(e);
|
BoxContent::resizeEvent(e);
|
||||||
|
|
||||||
|
const auto available = width()
|
||||||
|
- st::boxPadding.left()
|
||||||
|
- st::boxPadding.right();
|
||||||
_version->moveToLeft(st::boxPadding.left(), st::aboutVersionTop);
|
_version->moveToLeft(st::boxPadding.left(), st::aboutVersionTop);
|
||||||
|
_text1->resizeToWidth(available);
|
||||||
_text1->moveToLeft(st::boxPadding.left(), st::aboutTextTop);
|
_text1->moveToLeft(st::boxPadding.left(), st::aboutTextTop);
|
||||||
|
_text2->resizeToWidth(available);
|
||||||
_text2->moveToLeft(st::boxPadding.left(), _text1->y() + _text1->height() + st::aboutSkip);
|
_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);
|
_text3->moveToLeft(st::boxPadding.left(), _text2->y() + _text2->height() + st::aboutSkip);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue