diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-02-06 16:09:47 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-06 21:45:00 -0800 |
commit | 074dcfb656c579c068e4e298f086535c027ff305 (patch) | |
tree | 2eaac52c652aabd98210427d4ef11b2db48dccf6 | |
parent | 5735c1f387308eb8970a24aa26325ad30503ec3b (diff) | |
download | subsurface-074dcfb656c579c068e4e298f086535c027ff305.tar.gz |
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>
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index ccc84f450..88f8c93de 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -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 |