1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-24 17:35:43 +02:00

BaseModalDialog: scrollbar added when popups are too big

GitLab: #1417
Change-Id: I7b41398656269e474cbce90ace2ba1c89c5048df
This commit is contained in:
cberthet 2023-11-21 11:19:36 -05:00
parent dc7c366afa
commit f7bf2899f7

View file

@ -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 {