We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b35b97 commit 38ac8d4Copy full SHA for 38ac8d4
forms-flow-nav/src/root.component.js
@@ -39,12 +39,13 @@ export default function Root(props) {
39
}, []);
40
41
useEffect(() => {
42
- const headerHeight = headerRef.current?.offsetHeight || 0;
43
- const totalHeight = `calc(100% - ${headerHeight}px)`;
44
- setSidenavHeight(totalHeight);
45
if (hasMultitenancyHeader) {
46
StyleServices?.setCSSVariable("--client-nav", "3rem");
47
}
+ const headerHeight = headerRef.current?.offsetHeight || 0;
+ const totalHeight = `calc(100% - ${headerHeight}px)`;
+ console.log(totalHeight);
48
+ setSidenavHeight(totalHeight);
49
}, [ hasMultitenancyHeader ]);
50
51
return (
0 commit comments