fix: InDropdown scrollable height
This commit is contained in:
parent
75e2fff7c0
commit
d79a93bb6a
|
@ -151,7 +151,7 @@ StatusDropdown {
|
||||||
StatusScrollView {
|
StatusScrollView {
|
||||||
id: scrollView
|
id: scrollView
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumHeight: Math.min(d.maxHeightCountNo, topRepeater.count) * d.itemStandardHeight
|
Layout.minimumHeight: Math.min(d.maxHeightCountNo * d.itemStandardHeight, contentHeight)
|
||||||
Layout.maximumHeight: Layout.minimumHeight
|
Layout.maximumHeight: Layout.minimumHeight
|
||||||
contentWidth: availableWidth
|
contentWidth: availableWidth
|
||||||
Layout.bottomMargin: d.defaultVMargin
|
Layout.bottomMargin: d.defaultVMargin
|
||||||
|
@ -389,15 +389,10 @@ StatusDropdown {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
id: noContactsText
|
id: noContactsText
|
||||||
|
|
||||||
parent: scrollView
|
|
||||||
|
|
||||||
anchors.centerIn: parent
|
|
||||||
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
|
||||||
|
@ -418,6 +413,7 @@ StatusDropdown {
|
||||||
lineHeight: 1.2
|
lineHeight: 1.2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
StatusButton {
|
StatusButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
Loading…
Reference in New Issue