From 9f5a67ac185a087f65548ace894747dafa8c217a Mon Sep 17 00:00:00 2001 From: Nikola Anachkov <87311182+NakataCode@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:24:31 +0200 Subject: [PATCH] fix(ui5-dynamic-page): prevent scroll position reset on unpinning the header (#10441) --- packages/fiori/src/DynamicPage.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/fiori/src/DynamicPage.ts b/packages/fiori/src/DynamicPage.ts index fbd6932ba11b..a9bd4eac6e13 100644 --- a/packages/fiori/src/DynamicPage.ts +++ b/packages/fiori/src/DynamicPage.ts @@ -372,6 +372,9 @@ class DynamicPage extends UI5Element { async onPinClick() { this.headerPinned = !this.headerPinned; + if (this.headerPinned) { + this.showHeaderInStickArea = true; + } this.fireDecoratorEvent("pin-button-toggle"); await renderFinished(); this.headerActions?.focusPinButton();