diff --git a/src/app/commoncomponents/BaseModalDialog.qml b/src/app/commoncomponents/BaseModalDialog.qml
index 60d7dc78435a5d3f28526e5c8835ad30f6db352f..3e4f8dd818c38126c128626d9c7dc3893d1aed6d 100644
--- a/src/app/commoncomponents/BaseModalDialog.qml
+++ b/src/app/commoncomponents/BaseModalDialog.qml
@@ -112,12 +112,22 @@ Popup {
                 visible: text.length > 0
             }
 
-            Loader {
-                id: containerSubContentLoader
+            JamiFlickable {
+                id: flickable
 
+                Layout.fillHeight: true
+
+                Layout.preferredHeight: Math.min(contentHeight, root.height)
+                Layout.preferredWidth: contentItem.childrenRect.width
                 Layout.rightMargin: popupMargins
                 Layout.alignment: Qt.AlignCenter
-                Layout.maximumWidth: maximumPopupWidth - 2 * popupMargins
+
+                contentHeight: contentItem.childrenRect.height
+
+                contentItem.children: Loader {
+                    id: containerSubContentLoader
+                }
+                ScrollBar.horizontal.visible: false
             }
 
             DialogButtonBox {