Skip to content

Commit a43e2ef

Browse files
authored
Merge pull request #513 from Ajay-aot/bugfix/FWF-4439-additional-changes
update in useEffect which setting the header height
2 parents 8b35b97 + 564ea9e commit a43e2ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

forms-flow-nav/src/root.component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ export default function Root(props) {
3939
}, []);
4040

4141
useEffect(() => {
42-
const headerHeight = headerRef.current?.offsetHeight || 0;
43-
const totalHeight = `calc(100% - ${headerHeight}px)`;
44-
setSidenavHeight(totalHeight);
4542
if (hasMultitenancyHeader) {
4643
StyleServices?.setCSSVariable("--client-nav", "3rem");
4744
}
45+
const headerHeight = headerRef.current?.offsetHeight || 0;
46+
const totalHeight = `calc(100% - ${headerHeight}px)`;
47+
setSidenavHeight(totalHeight);
4848
}, [ hasMultitenancyHeader ]);
4949

5050
return (

0 commit comments

Comments
 (0)