Fixed position of mini stars in header if gift box.

This commit is contained in:
23rd 2024-10-07 19:14:31 +03:00
parent 6a69447d90
commit 86fa98dfbb

View file

@ -1255,7 +1255,7 @@ void GiftBox(
stUser.photoSize * 2);
content->sizeValue(
) | 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());
stars->setPosition(starsRect.topLeft());
stars->setSize(starsRect.size());