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:
parent
dc7c366afa
commit
f7bf2899f7
1 changed files with 13 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue