Browse Source

Merge pull request #8030 from DonLakeFlyer/ComboHeight

Reduce height of items in combo dropdown
QGC4.4
Don Gagne 6 years ago committed by GitHub
parent
commit
23b5156f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/QmlControls/QGCComboBox.qml

1
src/QmlControls/QGCComboBox.qml

@ -54,6 +54,7 @@ T.ComboBox {
// The items in the popup // The items in the popup
delegate: ItemDelegate { delegate: ItemDelegate {
width: _popupWidth width: _popupWidth
height: Math.round(popupItemMetrics.height * 1.75)
property string _text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData property string _text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData

Loading…
Cancel
Save