RibbonComboBox: Fix the popup menu's height while ListModel has single item.
This commit is contained in:
parent
1d3a2e6d71
commit
baa1153852
|
@ -147,10 +147,14 @@ ComboBox {
|
|||
y: control.height
|
||||
width: control.width
|
||||
height: origin_height
|
||||
property int origin_height: Math.min(contentItem.implicitHeight, control.Window.height - topMargin - bottomMargin)
|
||||
property int origin_height: Math.min(contentItem.implicitHeight + topInset + topPadding + bottomPadding + bottomInset, control.Window.height - topMargin - bottomMargin)
|
||||
topMargin: 6
|
||||
bottomMargin: 6
|
||||
|
||||
padding:5
|
||||
topPadding: 7
|
||||
bottomPadding: 7
|
||||
|
||||
contentItem: ListView {
|
||||
clip: true
|
||||
implicitHeight: contentHeight
|
||||
|
|
Loading…
Reference in New Issue