mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fixed width of username label with button for QR in profiles.
This commit is contained in:
@@ -1241,9 +1241,9 @@ 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(),
|
||||||
button->sizeValue()
|
button->sizeValue()
|
||||||
) | rpl::start_with_next([=](int, QSize buttonSize) {
|
) | rpl::start_with_next([=](const QRect&, const QSize &buttonSize) {
|
||||||
const auto s = parent->size();
|
const auto s = parent->size();
|
||||||
button->moveToRight(
|
button->moveToRight(
|
||||||
rightSkip,
|
rightSkip,
|
||||||
|
Reference in New Issue
Block a user