Fixed resizing menu with wide items.
This commit is contained in:
parent
a5fb993721
commit
bda12f2bec
1 changed files with 2 additions and 2 deletions
|
|
@ -129,8 +129,8 @@ not_null<QAction*> Menu::addAction(base::unique_qptr<ItemBase> widget) {
|
|||
? _st.widthMin
|
||||
: (*ranges::max_element(
|
||||
_actionWidgets,
|
||||
std::greater<>(),
|
||||
&ItemBase::width))->minWidth();
|
||||
std::less<>(),
|
||||
&ItemBase::minWidth))->minWidth();
|
||||
resizeFromInner(newWidth, height());
|
||||
}, widget->lifetime());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue