diff --git a/DSView/pv/ui/dscombobox.cpp b/DSView/pv/ui/dscombobox.cpp index cc3e38c5..b57c66d8 100644 --- a/DSView/pv/ui/dscombobox.cpp +++ b/DSView/pv/ui/dscombobox.cpp @@ -25,6 +25,11 @@ #include #include +#ifdef Q_OS_DARWIN +#include +#include +#endif + #include "../config/appconfig.h" DsComboBox::DsComboBox(QWidget *parent) : QComboBox(parent) @@ -62,8 +67,13 @@ DsComboBox::DsComboBox(QWidget *parent) : QComboBox(parent) int x = rc.left() + 6; int y = rc.top(); int w = rc.right() - rc.left(); - int h = rc.bottom() - rc.top() + 15; + int h = rc.bottom() - rc.top() + 20; popup->setGeometry(x, y, w, h); + + int sy = QGuiApplication::primaryScreen()->size().height(); + if (sy <= 1080){ + popup->setMaximumHeight(750); + } if (AppConfig::Instance()._frameOptions.style == THEME_STYLE_DARK){ popup->setStyleSheet("background-color:#262626;");