diff --git a/packages/fiori/src/DynamicPage.ts b/packages/fiori/src/DynamicPage.ts index b4b9e9259c95..bb6c0d6b2d7f 100644 --- a/packages/fiori/src/DynamicPage.ts +++ b/packages/fiori/src/DynamicPage.ts @@ -327,6 +327,10 @@ class DynamicPage extends UI5Element { const headerHeight = this.dynamicPageHeader.getBoundingClientRect().height; const lastHeaderSnapped = this._headerSnapped; + if (this._headerSnapped && scrollTop > headerHeight) { + this.showHeaderInStickArea = false; + } + const shouldSnap = !this._headerSnapped && scrollTop > headerHeight + SCROLL_THRESHOLD; const shouldExpand = this._headerSnapped && (scrollTop < headerHeight - SCROLL_THRESHOLD || (!scrollTop && !headerHeight));