From 9c58fa1020ed51e7f1aea3f4155baad405315f1b Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 5 Jan 2025 01:59:30 -0500 Subject: [PATCH] ui: remove stretch in sunnypilot panel (#520) * no need to stretch for listwidget * button moved --- selfdrive/ui/sunnypilot/qt/offroad/settings/sunnypilot_panel.cc | 1 - selfdrive/ui/tests/test_ui/run.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/sunnypilot_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/sunnypilot_panel.cc index 65a696d814..6671208fea 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/sunnypilot_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/sunnypilot_panel.cc @@ -49,7 +49,6 @@ SunnypilotPanel::SunnypilotPanel(SettingsWindowSP *parent) : QFrame(parent) { sunnypilotScroller = new ScrollViewSP(list, this); vlayout->addWidget(sunnypilotScroller); - vlayout->addStretch(1); main_layout->addWidget(sunnypilotScreen); main_layout->addWidget(madsWidget); diff --git a/selfdrive/ui/tests/test_ui/run.py b/selfdrive/ui/tests/test_ui/run.py index a8b6c41ede..847ebaf4e3 100644 --- a/selfdrive/ui/tests/test_ui/run.py +++ b/selfdrive/ui/tests/test_ui/run.py @@ -186,7 +186,7 @@ def setup_settings_sunnypilot_mads(click, pm: PubMaster): setup_settings_device(click, pm) click(278, 846) - click(970, 250) + click(970, 455) time.sleep(UI_DELAY) CASES = {