diff --git a/selfdrive/ui/layouts/settings/starpilot/appearance.py b/selfdrive/ui/layouts/settings/starpilot/appearance.py index a3cf1f633..b74ef94d2 100644 --- a/selfdrive/ui/layouts/settings/starpilot/appearance.py +++ b/selfdrive/ui/layouts/settings/starpilot/appearance.py @@ -221,6 +221,9 @@ class AppearanceManagerView(AetherSettingsView): self._scroll_rect, self._scroll_rect.height ) + if self.vertical_scrolling_disabled: + self._scroll_offset = 0.0 + self._draw_scroll_content(self._scroll_rect, self._scroll_rect.width) def _draw_scroll_content(self, rect: rl.Rectangle, width: float): diff --git a/selfdrive/ui/layouts/settings/starpilot/lateral.py b/selfdrive/ui/layouts/settings/starpilot/lateral.py index f405aa227..e4a7eebbd 100644 --- a/selfdrive/ui/layouts/settings/starpilot/lateral.py +++ b/selfdrive/ui/layouts/settings/starpilot/lateral.py @@ -78,6 +78,10 @@ def _sync_parent(params, parent_key, child_keys): class SteeringManagerView(PanelManagerView): METRICS = CUSTOM_METRICS + @property + def vertical_scrolling_disabled(self) -> bool: + return True + def __init__(self, controller: "StarPilotLateralLayout"): super().__init__() self._controller = controller diff --git a/selfdrive/ui/layouts/settings/starpilot/longitudinal.py b/selfdrive/ui/layouts/settings/starpilot/longitudinal.py index a6faefcd6..878cc38be 100644 --- a/selfdrive/ui/layouts/settings/starpilot/longitudinal.py +++ b/selfdrive/ui/layouts/settings/starpilot/longitudinal.py @@ -249,6 +249,9 @@ class LongitudinalManagerView(AetherSettingsView): self._scroll_rect, self._scroll_rect.height ) + if self.vertical_scrolling_disabled: + self._scroll_offset = 0.0 + self._draw_scroll_content(self._scroll_rect, self._scroll_rect.width) def _draw_scroll_content(self, rect: rl.Rectangle, width: float):