Fix Page header offset on sticky
This commit is contained in:
parent
c818716190
commit
41ef72e738
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue