Skip to content

Commit

Permalink
fix(ObjectPage): prevent content flickering with single subsection (#…
Browse files Browse the repository at this point in the history
…5392)

Fixes #5391
  • Loading branch information
Lukas742 committed Jan 8, 2024
1 parent b290c55 commit 7e1965d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main/src/components/ObjectPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ const ObjectPage = forwardRef<HTMLDivElement, ObjectPagePropTypes>((props, ref)
}
const subSections = section.querySelectorAll<HTMLDivElement>('[id^="ObjectPageSubSection"]');
const lastSubSection = subSections[subSections.length - 1];
if (lastSubSection) {
if (subSections.length > 1 && lastSubSection) {
heightDiff +=
objectPage.getBoundingClientRect().height -
topHeaderHeight -
Expand Down

0 comments on commit 7e1965d

Please sign in to comment.