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
|
? _st.widthMin
|
||||||
: (*ranges::max_element(
|
: (*ranges::max_element(
|
||||||
_actionWidgets,
|
_actionWidgets,
|
||||||
std::greater<>(),
|
std::less<>(),
|
||||||
&ItemBase::width))->minWidth();
|
&ItemBase::minWidth))->minWidth();
|
||||||
resizeFromInner(newWidth, height());
|
resizeFromInner(newWidth, height());
|
||||||
}, widget->lifetime());
|
}, widget->lifetime());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue