mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Fixed width of menu item for IV zoom.
This commit is contained in:
parent
c076daa91f
commit
23a77b1ba4
1 changed files with 12 additions and 0 deletions
|
@ -150,6 +150,18 @@ public:
|
|||
});
|
||||
minus->show();
|
||||
|
||||
{
|
||||
const auto maxWidthText = u"000%"_q;
|
||||
_text.setText(_st.itemStyle, maxWidthText);
|
||||
Ui::Menu::ItemBase::setMinWidth(
|
||||
_text.maxWidth()
|
||||
+ st::ivResetZoomInnerPadding
|
||||
+ resetLabel->width()
|
||||
+ plus->width()
|
||||
+ minus->width()
|
||||
+ _st.itemPadding.right() * 2);
|
||||
}
|
||||
|
||||
_delegate->ivZoomValue(
|
||||
) | rpl::start_with_next([this](int value) {
|
||||
_text.setText(_st.itemStyle, QString::number(value) + '%');
|
||||
|
|
Loading…
Add table
Reference in a new issue