Fix Page header offset on sticky

This commit is contained in:
Konstantinos Triantafyllou 2022-04-08 13:04:02 +03:00
parent c818716190
commit 41ef72e738
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ export class PageContentComponent implements OnInit, AfterViewInit, OnDestroy {
}
initSticky() {
this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--structure-header-height'));
this.clear();
if(this.shouldSticky) {
this.subscriptions.push(UIkit.util.on(document, 'active', '#page_content_header', () => {