diff --git a/landingPages/dataProvider/dataProvider.component.html b/landingPages/dataProvider/dataProvider.component.html index 888317a6..ab80b5bc 100644 --- a/landingPages/dataProvider/dataProvider.component.html +++ b/landingPages/dataProvider/dataProvider.component.html @@ -1,6 +1,16 @@
+
diff --git a/landingPages/dataProvider/dataProvider.component.ts b/landingPages/dataProvider/dataProvider.component.ts index c5df0b83..ab95e40a 100644 --- a/landingPages/dataProvider/dataProvider.component.ts +++ b/landingPages/dataProvider/dataProvider.component.ts @@ -215,7 +215,11 @@ export class DataProviderComponent { ngAfterViewInit() { if (typeof document !== 'undefined') { - this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height')); + if(document.getElementById("main-menu")) { + this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height')); + } else { + this.offset = 0; + } // let bottom = document.getElementById('bottom'); // if(bottom) { // let observer = new IntersectionObserver(entries => { diff --git a/landingPages/organization/organization.component.html b/landingPages/organization/organization.component.html index 95cdc3f7..f720c53c 100644 --- a/landingPages/organization/organization.component.html +++ b/landingPages/organization/organization.component.html @@ -1,6 +1,16 @@
+
diff --git a/landingPages/organization/organization.component.ts b/landingPages/organization/organization.component.ts index 60a148d0..3a7e257f 100644 --- a/landingPages/organization/organization.component.ts +++ b/landingPages/organization/organization.component.ts @@ -190,7 +190,11 @@ export class OrganizationComponent { ngAfterViewInit() { if (typeof document !== 'undefined') { - this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height')); + if(document.getElementById("main-menu")) { + this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height')); + } else { + this.offset = 0; + } // let bottom = document.getElementById('bottom'); // if(bottom) { // let observer = new IntersectionObserver(entries => { diff --git a/landingPages/project/project.component.html b/landingPages/project/project.component.html index 1fcaadb4..6905df01 100644 --- a/landingPages/project/project.component.html +++ b/landingPages/project/project.component.html @@ -1,6 +1,16 @@
+
diff --git a/landingPages/project/project.component.ts b/landingPages/project/project.component.ts index 56622846..0c9fcb22 100644 --- a/landingPages/project/project.component.ts +++ b/landingPages/project/project.component.ts @@ -235,7 +235,11 @@ export class ProjectComponent { ngAfterViewInit() { if (typeof document !== 'undefined') { - this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height')); + if(document.getElementById("main-menu")) { + this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height')); + } else { + this.offset = 0; + } // let bottom = document.getElementById('bottom'); // if(bottom) { // let observer = new IntersectionObserver(entries => { diff --git a/landingPages/result/resultLanding.component.html b/landingPages/result/resultLanding.component.html index bedbea13..d0200e89 100644 --- a/landingPages/result/resultLanding.component.html +++ b/landingPages/result/resultLanding.component.html @@ -1,6 +1,16 @@
+
diff --git a/landingPages/result/resultLanding.component.ts b/landingPages/result/resultLanding.component.ts index 58c227a1..efb9dd83 100644 --- a/landingPages/result/resultLanding.component.ts +++ b/landingPages/result/resultLanding.component.ts @@ -231,7 +231,12 @@ export class ResultLandingComponent { ngAfterViewInit() { if (typeof document !== 'undefined') { - this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height')); + // if(properties.adminToolsPortalType !== 'eosc') { + if(document.getElementById("main-menu")) { + this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height')); + } else { + this.offset = 0; + } // let bottom = document.getElementById('bottom'); // if(bottom) { // let observer = new IntersectionObserver(entries => {