From 2089e7f7053be45cc19aed59b938b32c569de605 Mon Sep 17 00:00:00 2001 From: Aidan Timson Date: Mon, 9 Feb 2026 12:46:20 +0000 Subject: [PATCH] Cleanup --- src/panels/lovelace/views/hui-sections-view.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/panels/lovelace/views/hui-sections-view.ts b/src/panels/lovelace/views/hui-sections-view.ts index 939218d1d4..a57db93e7a 100644 --- a/src/panels/lovelace/views/hui-sections-view.ts +++ b/src/panels/lovelace/views/hui-sections-view.ts @@ -407,13 +407,9 @@ export class SectionsView extends LitElement implements LovelaceViewElement { } } - private _getScrollContainer(): Element | null { - // The scroll container is the hui-view-container parent - return this.closest("hui-view-container"); - } - private _toggleView() { - const scrollContainer = this._getScrollContainer(); + // The scroll container is the hui-view-container parent + const scrollContainer = this.closest("hui-view-container"); const scrollTop = scrollContainer?.scrollTop ?? 0; // Save current scroll position