mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Use FlatLabel::textMaxWidth.
This commit is contained in:
@@ -403,7 +403,7 @@ not_null<Ui::RpWidget*> AddInnerToggle(
|
||||
(s.height() - label->height()) / 2);
|
||||
arrow->moveToLeft(
|
||||
std::min(
|
||||
labelLeft + label->naturalWidth(),
|
||||
labelLeft + label->textMaxWidth(),
|
||||
labelRight - arrow->width()),
|
||||
(s.height() - arrow->height()) / 2);
|
||||
}, button->lifetime());
|
||||
|
||||
Reference in New Issue
Block a user