mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed position of mini stars in header if gift box.
This commit is contained in:
parent
6a69447d90
commit
86fa98dfbb
1 changed files with 1 additions and 1 deletions
|
@ -1255,7 +1255,7 @@ void GiftBox(
|
||||||
stUser.photoSize * 2);
|
stUser.photoSize * 2);
|
||||||
content->sizeValue(
|
content->sizeValue(
|
||||||
) | rpl::start_with_next([=](const QSize &size) {
|
) | rpl::start_with_next([=](const QSize &size) {
|
||||||
widget->moveToLeft(stUser.photoSize / 2, 0);
|
widget->moveToLeft((size.width() - widget->width()) / 2, 0);
|
||||||
const auto starsRect = Rect(widget->size());
|
const auto starsRect = Rect(widget->size());
|
||||||
stars->setPosition(starsRect.topLeft());
|
stars->setPosition(starsRect.topLeft());
|
||||||
stars->setSize(starsRect.size());
|
stars->setSize(starsRect.size());
|
||||||
|
|
Loading…
Add table
Reference in a new issue