Fixed resizing menu with wide items.

This commit is contained in:
23rd 2021-01-23 21:58:12 +03:00
parent a5fb993721
commit bda12f2bec

View file

@ -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());