From 727b79b66f5593cebbe8176a8d591a24ba7d045d Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Sat, 10 Jun 2023 22:09:48 -0700 Subject: [PATCH] UI: consider border when setting map width (#28488) old-commit-hash: 22ebd4fa8f7f9974daf096db6d3e11034149d6d9 --- selfdrive/ui/qt/onroad.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index af07f179c4..0dcf38ccf0 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -95,7 +95,7 @@ void OnroadWindow::offroadTransition(bool offroad) { QObject::connect(uiState(), &UIState::offroadTransition, m, &MapWindow::offroadTransition); - m->setFixedWidth(topWidget(this)->width() / 2); + m->setFixedWidth(topWidget(this)->width() / 2 - bdr_s); split->insertWidget(0, m); // Make map visible after adding to split