Fixed width of button in passport VerifyBox.
This commit is contained in:
parent
1666683dbb
commit
43671e2b47
|
@ -144,6 +144,10 @@ void VerifyBox::setupControls(
|
||||||
tr::lng_intro_fragment_button(),
|
tr::lng_intro_fragment_button(),
|
||||||
st::fragmentBoxButton),
|
st::fragmentBoxButton),
|
||||||
small);
|
small);
|
||||||
|
_content->widthValue(
|
||||||
|
) | rpl::start_with_next([=](int w) {
|
||||||
|
button->setFullWidth(w - small.left() - small.right());
|
||||||
|
}, button->lifetime());
|
||||||
button->setClickedCallback([=] { ::File::OpenUrl(openUrl); });
|
button->setClickedCallback([=] { ::File::OpenUrl(openUrl); });
|
||||||
button->setTextTransform(
|
button->setTextTransform(
|
||||||
Ui::RoundButton::TextTransform::NoTransform);
|
Ui::RoundButton::TextTransform::NoTransform);
|
||||||
|
|
Loading…
Reference in New Issue