aboutsummaryrefslogtreecommitdiff
path: root/confui/ui_scroll_container.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'confui/ui_scroll_container.cpp')
-rw-r--r--confui/ui_scroll_container.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/confui/ui_scroll_container.cpp b/confui/ui_scroll_container.cpp
index 5a412f8..6b15221 100644
--- a/confui/ui_scroll_container.cpp
+++ b/confui/ui_scroll_container.cpp
@@ -11,7 +11,8 @@ CDScrollContainerLayout::CDScrollContainerLayout(QWidget *parent) : QVBoxLayout(
scroll_area->setBackgroundRole(QPalette::Window);
scroll_area->setFrameShadow(QFrame::Plain);
scroll_area->setWidget(scroll_container);
- scroll_area->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
+ scroll_area->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Expanding);
+ scroll_area->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
scroll_container->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
scroll_container->setLayout(scroll_inner);