diff --git a/packages/main/src/components/ObjectPage/index.tsx b/packages/main/src/components/ObjectPage/index.tsx index 16530acfdb4..761caa8b8db 100644 --- a/packages/main/src/components/ObjectPage/index.tsx +++ b/packages/main/src/components/ObjectPage/index.tsx @@ -465,7 +465,7 @@ const ObjectPage = forwardRef((props, ref) } const subSections = section.querySelectorAll('[id^="ObjectPageSubSection"]'); const lastSubSection = subSections[subSections.length - 1]; - if (lastSubSection) { + if (subSections.length > 1 && lastSubSection) { heightDiff += objectPage.getBoundingClientRect().height - topHeaderHeight -