mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fix username disappearance in My Profile.
This commit is contained in:
parent
bcd1d8461f
commit
4569f93e70
1 changed files with 8 additions and 8 deletions
|
@ -1241,19 +1241,19 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
|
||||||
int rightSkip) {
|
int rightSkip) {
|
||||||
const auto parent = label->parentWidget();
|
const auto parent = label->parentWidget();
|
||||||
rpl::combine(
|
rpl::combine(
|
||||||
|
result->widthValue(),
|
||||||
label->geometryValue(),
|
label->geometryValue(),
|
||||||
button->sizeValue()
|
button->sizeValue()
|
||||||
) | rpl::start_with_next([=](const QRect&, const QSize &buttonSize) {
|
) | rpl::start_with_next([=](int width, QRect, QSize buttonSize) {
|
||||||
const auto s = parent->size();
|
const auto s = parent->size();
|
||||||
button->moveToRight(
|
button->moveToRight(
|
||||||
rightSkip,
|
rightSkip,
|
||||||
(s.height() - buttonSize.height()) / 2);
|
(parent->height() - buttonSize.height()) / 2);
|
||||||
label->resizeToWidth(
|
label->resizeToWidth(width
|
||||||
s.width()
|
- rightSkip
|
||||||
- rightSkip
|
- label->geometry().left()
|
||||||
- label->geometry().left()
|
- st::lineWidth * 2
|
||||||
- st::lineWidth * 2
|
- buttonSize.width());
|
||||||
- buttonSize.width());
|
|
||||||
}, button->lifetime());
|
}, button->lifetime());
|
||||||
};
|
};
|
||||||
const auto controller = _controller->parentController();
|
const auto controller = _controller->parentController();
|
||||||
|
|
Loading…
Add table
Reference in a new issue