Skip to content

Commit 7e1965d

Browse files
authored
fix(ObjectPage): prevent content flickering with single subsection (#5392)
Fixes #5391
1 parent b290c55 commit 7e1965d

File tree

1 file changed

+1
-1
lines changed
  • packages/main/src/components/ObjectPage

1 file changed

+1
-1
lines changed

packages/main/src/components/ObjectPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ const ObjectPage = forwardRef<HTMLDivElement, ObjectPagePropTypes>((props, ref)
465465
}
466466
const subSections = section.querySelectorAll<HTMLDivElement>('[id^="ObjectPageSubSection"]');
467467
const lastSubSection = subSections[subSections.length - 1];
468-
if (lastSubSection) {
468+
if (subSections.length > 1 && lastSubSection) {
469469
heightDiff +=
470470
objectPage.getBoundingClientRect().height -
471471
topHeaderHeight -

0 commit comments

Comments
 (0)