UI: consider border when setting map width (#28488)

old-commit-hash: 22ebd4fa8f
beeps
Cameron Clough 2 years ago committed by GitHub
parent f7824bffb0
commit 727b79b66f
  1. 2
      selfdrive/ui/qt/onroad.cc

@ -95,7 +95,7 @@ void OnroadWindow::offroadTransition(bool offroad) {
QObject::connect(uiState(), &UIState::offroadTransition, m, &MapWindow::offroadTransition); 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); split->insertWidget(0, m);
// Make map visible after adding to split // Make map visible after adding to split

Loading…
Cancel
Save