mobile/settings: fix the width of cylinder drop down

The GridLayout isn't part of a Layout, so set its width and
have the combo box fill it's part of the grid.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-02-06 16:09:47 -08:00
parent 5735c1f387
commit 074dcfb656

View file

@ -75,7 +75,7 @@ TemplatePage {
id: defaultCylinder
visible: sectionGeneral.isExpanded
columns: 2
Layout.rightMargin: Kirigami.Units.gridUnit * 1.5
width: parent.width
TemplateLabel {
text: qsTr("Default Cylinder")
@ -90,6 +90,7 @@ TemplatePage {
}
TemplateComboBox {
id: defaultCylinderBox
Layout.fillWidth: true
onActivated: {
// the entry for 'no default cylinder' is known to be the top, but its text
// is possibly translated so check against the index