From 4a4703fdcb23153305ce7569d6e21fe7c43d6a6c Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Sat, 17 Dec 2022 00:50:37 -0800 Subject: [PATCH] Fix spacing in MultiOptionDialog (#26817) Update input.cc old-commit-hash: 66bdd8b1228eb725006cc4c2d389fe2cef7e674a --- selfdrive/ui/qt/widgets/input.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/ui/qt/widgets/input.cc b/selfdrive/ui/qt/widgets/input.cc index 6f132adfc2..2026a70478 100644 --- a/selfdrive/ui/qt/widgets/input.cc +++ b/selfdrive/ui/qt/widgets/input.cc @@ -296,6 +296,8 @@ MultiOptionDialog::MultiOptionDialog(const QString &prompt_text, const QStringLi group->addButton(selectionLabel); listLayout->addWidget(selectionLabel); } + // add stretch to keep buttons spaced correctly + listLayout->addStretch(1); ScrollView *scroll_view = new ScrollView(listWidget, this); scroll_view->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);