Skip to content

Commit 61992c9

Browse files
authored
fix use fractional height value (#1677)
1 parent 154ea15 commit 61992c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/layout/ExternalFooter.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const ExternalFooter: React.FC<ExternalFooterProps> = (props: ExternalFooterProp
1515
style={{ display: 'block', width: '100%', height: elementHeight }}
1616
onLoad={
1717
() => setElementHeight(
18-
`${document.getElementById('externalFooter').contentWindow.document.body.scrollHeight}px`,
18+
`${document.getElementById('externalFooter').contentWindow.document.body.getBoundingClientRect().height}px`,
1919
)
2020
}
2121
/>

0 commit comments

Comments
 (0)