mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix username disappearance in My Profile.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user