diff --git a/src/qt/forms/overviewpage.ui b/src/qt/forms/overviewpage.ui
index 88172b06751..ee9d4a113ca 100644
--- a/src/qt/forms/overviewpage.ui
+++ b/src/qt/forms/overviewpage.ui
@@ -517,6 +517,9 @@
Qt::ScrollBarAlwaysOff
+
+ QAbstractScrollArea::AdjustToContents
+
QAbstractItemView::NoSelection
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp
index 3b3e5a2aeb4..9f2e8662728 100644
--- a/src/qt/overviewpage.cpp
+++ b/src/qt/overviewpage.cpp
@@ -22,6 +22,9 @@
#include
#include
+#include
+#include