mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +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) {
|
||||
const auto parent = label->parentWidget();
|
||||
rpl::combine(
|
||||
result->widthValue(),
|
||||
label->geometryValue(),
|
||||
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();
|
||||
button->moveToRight(
|
||||
rightSkip,
|
||||
(s.height() - buttonSize.height()) / 2);
|
||||
label->resizeToWidth(
|
||||
s.width()
|
||||
- rightSkip
|
||||
- label->geometry().left()
|
||||
- st::lineWidth * 2
|
||||
- buttonSize.width());
|
||||
(parent->height() - buttonSize.height()) / 2);
|
||||
label->resizeToWidth(width
|
||||
- rightSkip
|
||||
- label->geometry().left()
|
||||
- st::lineWidth * 2
|
||||
- buttonSize.width());
|
||||
}, button->lifetime());
|
||||
};
|
||||
const auto controller = _controller->parentController();
|
||||
|
|
Loading…
Add table
Reference in a new issue