Fixed minimal height of menu item with multiline text.

This commit is contained in:
23rd 2023-09-11 13:39:58 +03:00
parent e24eaa6b32
commit aaa88be9d7

View file

@ -50,7 +50,9 @@ bool MultilineAction::isEnabled() const {
int MultilineAction::contentHeight() const {
const auto skip = _labelPosition.y();
return skip + _text->height() + skip;
return skip
+ std::max(_text->height(), _icon ? _icon->height() : 0)
+ skip;
}
void MultilineAction::paintEvent(QPaintEvent *e) {