From 7193ff57e0ee019112adf464498222785ce5d1cb Mon Sep 17 00:00:00 2001 From: sshane Date: Wed, 21 Jul 2021 16:36:55 -0700 Subject: [PATCH] networking: fix stretching with only 1 network (#21675) --- selfdrive/ui/qt/offroad/networking.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/offroad/networking.cc b/selfdrive/ui/qt/offroad/networking.cc index 3038726aec..d90e36e820 100644 --- a/selfdrive/ui/qt/offroad/networking.cc +++ b/selfdrive/ui/qt/offroad/networking.cc @@ -282,7 +282,7 @@ void WifiUI::refresh() { strength->setPixmap(strengths[std::clamp((int)network.strength/26, 0, 3)]); hlayout->addWidget(strength, 0, Qt::AlignRight); - main_layout->addLayout(hlayout, 1); + main_layout->addLayout(hlayout); // Don't add the last horizontal line if (i+1 < wifi->seen_networks.size()) { @@ -290,5 +290,5 @@ void WifiUI::refresh() { } i++; } - main_layout->addStretch(2); + main_layout->addStretch(1); }