Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app/qml/components/MMListMultiselectDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ MMDrawer {

interactive: !listViewComponent.interactive

drawerBottomMargin: 0
drawerBottomMargin: listViewComponent.count === 0
? (__style.margin20 + __style.safeAreaBottom)
: 0

drawerContent: Item {
width: parent.width
Expand Down Expand Up @@ -70,7 +72,6 @@ MMDrawer {
MMScrollView {
width: parent.width
height: Math.min( contentHeight, root.drawerContentAvailableHeight - internal.searchBarVerticalSpace )

enabled: contentHeight > height

Loader {
Expand All @@ -87,7 +88,7 @@ MMDrawer {

width: parent.width
height: Math.min( contentHeight, root.drawerContentAvailableHeight - internal.searchBarVerticalSpace )

visible: count > 0
interactive: contentHeight > height

clip: true
Expand Down
11 changes: 11 additions & 0 deletions app/qml/form/editors/MMFormValueMapEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ MMFormComboboxBaseEditor {

drawerHeader.title: root._fieldTitle

emptyStateDelegate: Item {
width: parent.width
height: noItemsText.implicitHeight + __style.margin40

MMComponents.MMText {
id: noItemsText
text: qsTr( "No items" )
anchors.centerIn: parent
}
}

list.model: listModel

selected: root.preselectedItems
Expand Down
12 changes: 11 additions & 1 deletion app/qml/form/editors/MMFormValueRelationEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,19 @@ MMFormComboboxBaseEditor {
dropdownLoader.sourceComponent: Component {

MMComponents.MMListMultiselectDrawer {

drawerHeader.title: root._fieldTitle

emptyStateDelegate: Item {
width: parent.width
height: noItemsText.implicitHeight + __style.margin40

MMComponents.MMText {
id: noItemsText
text: qsTr( "No items" )
anchors.centerIn: parent
}
}

multiSelect: internal.allowMultivalue
withSearch: vrModel.count > 5
showFullScreen: multiSelect || withSearch
Expand Down
Loading