summaryrefslogtreecommitdiff
path: root/src/controls/Private/qquickstyleitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/Private/qquickstyleitem.cpp')
-rw-r--r--src/controls/Private/qquickstyleitem.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/controls/Private/qquickstyleitem.cpp b/src/controls/Private/qquickstyleitem.cpp
index fa51c4a3..20d89356 100644
--- a/src/controls/Private/qquickstyleitem.cpp
+++ b/src/controls/Private/qquickstyleitem.cpp
@@ -1041,8 +1041,7 @@ QSize QQuickStyleItem1::sizeFromContents(int width, int height)
case MenuItem:
case ComboBoxItem:
if (static_cast<QStyleOptionMenuItem *>(m_styleoption)->menuItemType == QStyleOptionMenuItem::Scroller) {
- size.setHeight(qMax(QApplication::globalStrut().height(),
- qApp->style()->pixelMetric(QStyle::PM_MenuScrollerHeight, 0, 0)));
+ size.setHeight(qApp->style()->pixelMetric(QStyle::PM_MenuScrollerHeight, 0, 0));
} else {
size = qApp->style()->sizeFromContents(QStyle::CT_MenuItem, m_styleoption, QSize(width,height));
}